洗掉顧客楊婷的個人資訊。
DELETE Customer
FROM Customer,proout
WHERE customer.CusNo=proout.CusNo and
CusName = '楊婷'
GO
select * from Customer
go
這個沖突怎么解決
uj5u.com熱心網友回復:
delete b
from dbo.Customer t
join dbo.ProOut b
on t.CusNo=b.CusNo
where t.CusName='楊婷'
delete t
from dbo.Customer t
where t.CusName='楊婷'
uj5u.com熱心網友回復:
是兩種寫法嗎 t=customer b=dbo.proout??uj5u.com熱心網友回復:
"t"和"b"分別是dbo.Customer表和dbo.ProOut表的別名.轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/283397.html
標籤:基礎類
