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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.