我有一个名为Customer的表,其中包含Id,Firstname,Lastname,Phone作为各自的列。
现在我要删除表格中的条目使用全名。
DELETE FROM customer
WHERE exists (SELECT * Id,CONCAT(Firstname," ",Lastname) as wholename
from customer where wholename ="Andre Russel");
答案 0 :(得分:1)
尝试:
DELETE FROM customer
WHERE CONCAT(Firstname,' ',Lastname) = 'Andre Russel'