Home > database > Sqlite how to associative table when using the delete statement
Sqlite how to associative table when using the delete statement
Time:10-15
Grammar is essentially a Delete from the from a ClassA a inner join (select * from ClassB) b on Anderson, D=b.I D and a.N ame=b.N ame, this statement can be deleted according to the ID and the Name ClassB ClassA table data,
ClassA is double primary key (ID, Name) This statement in the Sqlite does not support, a great god to guide a solution, thank you
CodePudding user response:
delete from ClassA The where (ID, Name) in (select ID, Name from ClassB);