mysql-cud语句

insert into person select id,name from user where id not in (2,5);

update person,user set person.name = 'name_test' where person.id = user.id;

delete person from person inner join user on user.id = person.id;

delete person from person inner join user on user.id = person.id where user.id = 1;

 

你可能感兴趣的:(mysql-cud语句)