Jump to content

SQL Update Query


karimali831

Recommended Posts

Hi,

 

I have two tables, (table1 & and table2)

 

table 1 columns -> ID, 1on1

table 2 columns -> ID, 1on1

 

I want to use an SQL UPDATE query for table2 so that the rows in table 1 for the 1on1 column is the same in table 2 for the same 1on1 column.

 

Rows in table 1 is how I want it in table 2 for the 1on1 column, ID in table 1 is the same ID in table 2 so I was thinking that I must use WHERE ID clause for the UPDATE query?

 

Current rows for 1on1 column is 0 for table2.

 

Thanks for help if you can.

Link to comment
https://forums.phpfreaks.com/topic/199474-sql-update-query/
Share on other sites

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.