谁来帮助一下啊?
select license as lcs
from MyWork..car
where model='Mazda' and license in(select license
from MyWork..owns
where ss =(select ss
from MyWork..person
where name='JohnSmith')
)
delete from MyWork..car
where license=lcs
delete from MyWork..accident
where aciddate =(select aciddate
from MyWork..acidlog
where license=lcs)
and driver =(select driver
from MyWork..acidlog
where license=lcs)
delete from MyWork..acidlog
where license=lcs
服务器: 消息 207,级别 16,状态 3,行 1
列名 'lcs' 无效。
服务器: 消息 207,级别 16,状态 1,行 13
列名 'lcs' 无效。
服务器: 消息 207,级别 16,状态 1,行 13
列名 'lcs' 无效。
服务器: 消息 207,级别 16,状态 1,行 21
列名 'lcs' 无效。
这该怎么改啊?