delete以其他表为参照删除当前表的某些数据

table1
col1 int,col2 text,col3 text
table2
col1 int,col4 text

delete from table1 where col1 in (select col1 from table2);

猜你喜欢

转载自blog.csdn.net/u012550037/article/details/77633790