这是我的疑问:它给了我以下错误: 00907. 00000 - “缺少右括号”
update table1
set description = replace(description,'[imp]','if([type]='A',[count],0)'
where description like '%[imp]%';
我也试过以下,同样的错误占上风:
update table1
set description = replace(description,'[imp]','if([type]=''A'',[count],0)'
where description like '%[imp]%';
有人可以帮忙吗?
答案 0 :(得分:1)
update table1
set description = replace(description,'[imp]','if([type]=''A'',[count],0)')
where description like '%[imp]%';
添加右括号以解决您的错误。否则,您的查询应该是好的。