update schdule set isSelected='0' where courseID not in('02010000') and catalogLevel not in( '2') and userID = '0000000'
想把除了courseID='02010000'和catalogLevel='2'以外的所有isSelected都变为0
这样写有错“列名 'catalogLevel' 无效。”。
isSelected bit 类型
courseID char 类型
catalogLevel int 类型
大家帮忙看看~谢!
想把除了courseID='02010000'和catalogLevel='2'以外的所有isSelected都变为0
这样写有错“列名 'catalogLevel' 无效。”。
isSelected bit 类型
courseID char 类型
catalogLevel int 类型
大家帮忙看看~谢!
set isSelected='0'
where courseID <> ('02010000') and
catalogLevel <> 2 and
userID = '0000000'
where courseID <> ('02010000') and
catalogLevel <> 2 and
userID = '0000000'
你在定义catalogLevel 时 为integer 型,所以,2不能加引号