MySQL常用语句总结

1.删除语句 

 

DELETE FROM table_name

TRUNCATE TABLE table_name

 

2.插入语句

INSERT INTO user1(user1.id,user1.name,user1.sex)SELECT (user.id,user.name,user.sex)FROM user where user.id <= 250000

INSERT INTO user2(user2.id,user2.name,user2.sex)SELECT (user.id,user.name,user.sex)FROM user where user.id > 250000

 


你可能感兴趣的:(mysql,数据库,职场,语句,休闲)