#connect to DB ....... #prepare your update statement ....... #YOUR LOOP START #read line from your file (via while for example) #execute your statement #YOUR LOOP END