The procedure to replace the wire uplight table lamp which damaged is not complicated. First you need to remove all the pieces of wire; also connected to the terminals of the socket and the connections to the switch must be eliminated. That done, you go to replace the damaged wire with new cable that must be placed, taking care to connect the wires with precision of line and the ground wire.
In general the connection of the power cord of uplight table lamp is via a cable pole type. The core cable is a cable that has three internal cables from different color: two solid and one bi-color, for example yellow-green. The central contact of the plug, which is nothing other than the earth contact, must be connected with the cable bicolor. This cable must be in direct contact with the metal parts of the lamp, it should therefore be fixed at ground screws of the lamp itself.
The other two wires, those plain, must be connected to the external contacts of the plug and the terminals of the uplight table lamp holder in the exact spot.