D
Danny Boukhris
I have 20 update queries that I want to combine on one
query. I have to run all 20 one at a time. How can I
combine these queries.
Here are 3 of the 20 update queries. I went to one query
and selected show sql, then I copied and pasted, but I am
getting error messages. The syntax definitely must be
wrong, I spend time adusting the parenthesis but no luck.
Please assist in the syntax where I can put all 20 sql
statements on a single update query.
Thanks!
QUERY #1
UPDATE TEST SET TEST.UNIT = 101
WHERE (((TEST.USERID) Like "C11*"));
QUERY #2
UPDATE TEST SET TEST.UNIT = 102
WHERE (((TEST.USERID) Like "C12*"));
QUERY #3
UPDATE TEST SET TEST.UNIT = 103
WHERE (((TEST.USERID) Like "C13*"));
query. I have to run all 20 one at a time. How can I
combine these queries.
Here are 3 of the 20 update queries. I went to one query
and selected show sql, then I copied and pasted, but I am
getting error messages. The syntax definitely must be
wrong, I spend time adusting the parenthesis but no luck.
Please assist in the syntax where I can put all 20 sql
statements on a single update query.
Thanks!
QUERY #1
UPDATE TEST SET TEST.UNIT = 101
WHERE (((TEST.USERID) Like "C11*"));
QUERY #2
UPDATE TEST SET TEST.UNIT = 102
WHERE (((TEST.USERID) Like "C12*"));
QUERY #3
UPDATE TEST SET TEST.UNIT = 103
WHERE (((TEST.USERID) Like "C13*"));