Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update multiple rows

Status
Not open for further replies.

jgurgen

Programmer
Mar 9, 2006
192
US
i wanna update rows with numbers greater than 5 to have the same closingdate as their openingdate

would it be

update table set closingdate=openingdate where num>5

now these records all have different openingdates so will they all be updated with the correct closingdate?
 
Do you mean numbers in a column greater than 5 or some kind of count greater than 5?

Make sure to try this on a temp table.

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top