早教吧 育儿知识 作业答案 考试题库 百科 知识分享

updatetable01asetbj='1'wherenumberin(selectnumberfromtable02b)"BJ"isnotvalidinthecontextwhereitisused.为什么提示这个不对?还有应该改成什么?

题目详情
update table01 a set bj='1' where number in (select number from table02 b )
"BJ" is not valid in the context where it is used.为什么提示这个不对?还有应该改成什么?
▼优质解答
答案和解析
update table01 a set a.bj='1' where a.number in (select number from table02 b )
或去掉a update table01 set bj='1' where number in (select number from table02 b )