嗨,我是sql的新手,我只是想问些建议,我的查询工作正常,它给了我所需的输出,但是我只想在一个查询中进行查询,只想将删除查询与选择查询结合起来。我真的很感激任何人都可以教我该怎么做
Delete from tblexample where RStatus = 'Done';
SELECT t3.RStatus,t1.Name,t2.gender,t1.Rnum,t1.NB,t1.fN
FROM table1 t1
INNER JOIN table2 t2
ON (t1.fN = t2.fln)
LEFT JOIN (
select * from tblexample t3
) AS t3 ON t1.NB = t3.NB where t3.RStatus is null
如果可能的话,我想在离开tblexample之前删除冷杉