SQL Update syntax

chemosabe

New member
Local time
Yesterday, 23:41
Joined
Sep 10, 2008
Messages
7
SQL Update syntax [RESOLVED]

Hi

Im trying to update a table that has two key fields; ive tried

UPDATE tbl
SET [val_1]=1,...[val_n]='str'
WHERE [key_1]=1,[key_2]=2;

But this gives me an error on the WHERE clause. What is the correct syntax?

Thanks.
 
Last edited:
Howzit

try

Code:
WHERE [key_1]=1 AND [key_2]=2;
 
Duh...

Thanks, that solved it :)
 

Users who are viewing this thread

Back
Top Bottom