[thelist] Updating two fields with SQL

Scott Dexter sgd at ti3.com
Mon Aug 21 15:58:52 CDT 2000


>    UPDATE TableName
>    SET    FirstField='New Value 1'
>    AND    SecondField='New Value 2'
>    WHERE  ID='#form.ID#'
> 

replace the AND with a comma:

Update <table> Set Field1=value, Field2=value, Field3=value ... WHERE
<clause>

sgd





More information about the thelist mailing list