Jump to content

Updating all cells in a database


nadz

Recommended Posts

im trying to add an option which allows the user to change their username. Usernames appear in my database in a number of tables under a several fields. i thought rather than using UPDATE queries for each field there might be a query that allows me to update all cells in the db where for example the value is "user124".

 

any help would be appreciated

Link to comment
https://forums.phpfreaks.com/topic/63629-updating-all-cells-in-a-database/
Share on other sites

i guess the tread starter problem is the normalization instead of using the id as the foreign key he use the user name whic is incorrect so maybe he want to replace the record in db tables having that user name

 

if u use id as the foreign key it will always be one table to be updated

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.