matrixrasta
asked on
How to update multiple columns in a prepared statement
Dear Experts
Can some one give me a sample syntax on how to update multiple columns.
What I know:
update Table set col1=3 where col1 = 4
Can some one give me a sample syntax on how to update multiple columns.
What I know:
update Table set col1=3 where col1 = 4
ASKER
I guess its with the
update Table set col1=3, col2 = 99, col3=98 where col1 = 4
update Table set col1=3, col2 = 99, col3=98 where col1 = 4
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
> update Table set col1=3, col2 = 99, col3=98 where col1 = 4
correct :)
correct :)
ASKER
Sorry gibu_george
thats not what i wanted, i asked for multiple columns
i just posted the solution on top
thats not what i wanted, i asked for multiple columns
i just posted the solution on top
ASKER
Thanks objects:
pstmt.setInt(1,3)
pstmt.setInt(2,4)