尝试通过更新查询更新我的表格,请参阅下面的查询,不确定是否会给我这个问题?
update tb1 set class='X' and SUB_CLASSIFICATION='XX' where id=12345 and
loc='0250' and TYPE='I' and CLASSIFICATION='B10'
答案 0 :(得分:0)
在,
AND
代替SET
update tb1 set class='X', SUB_CLASSIFICATION='XX' where id=12345 and
loc='0250' and TYPE='I' and CLASSIFICATION='B10'
答案 1 :(得分:0)
您需要使用“,
”来更新多个columns
update tb1 set class='X',SUB_CLASSIFICATION='XX' where id=12345 and
loc='0250' and TYPE='I' and CLASSIFICATION='B10'
答案 2 :(得分:0)
update tb1
set class='X', SUB_CLASSIFICATION='XX'
where id=12345 and loc='0250' and TYPE='I' and CLASSIFICATION='B10'
答案 3 :(得分:0)
是的,您的第一个AND应该是逗号(,)。
答案 4 :(得分:0)
在设置部分中,ypu必须使用',' - 而不是AND
update tb1 set class='X', SUB_CLASSIFICATION='XX' where id=12345 and
loc='0250' and TYPE='I' and CLASSIFICATION='B10'
答案 5 :(得分:0)
更新tb1 set class ='X',SUB_CLASSIFICATION ='XX' 其中id = 12345且loc ='0250'且TYPE ='I'且CLASSIFICATION ='B10'