Jump to content

[SOLVED] Update field data for all db entries


njdirt

Recommended Posts

Hello,

  How can I empty all values in a db field (within a table of course) and then reload every entry with the same info?

 

  For instance, take a pref_contact field.  There are many entries in this table, some have a value for "pref_contact" and others don't.  Either way, I want to change the field value of all of them to "11000".  Is this the correct SQL query:

INSERT INTO TableX (pref_contact)
VALUES (11000)

 

And will it change the value in every entry in the table?  Thanks in advance!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.