all groups > sql server programming > august 2007 >
You're in the

sql server programming

group:

Update Multiple Rows



Re: Update Multiple Rows Jason Lepack
8/15/2007 11:34:38 AM
sql server programming: UPDATE table
SET IsCrazy = 'True'
WHERE ID in(1,20,3,4,50)

Cheers,
Jason Lepack

[quoted text, click to view]

Update Multiple Rows Camelback
8/15/2007 6:32:58 PM
Hello

I'm new to SQL -

I'm trying to update multiple rows in a table.

Table -
Column values - ID | Name | IsCrazy

This is my query

UPDATE table
SET IsCrazy = 'True'
WHERE ID = 1,20,3,4,50


I am having a problem with the "WHERE ID =" part.

I have multiple id's that I need to update. How do i do this?

Thanks in advance!
Re: Update Multiple Rows Camelback
8/15/2007 6:39:48 PM
[quoted text, click to view]

Thanks you very much.
AddThis Social Bookmark Button