每次都要搜,还是记一下吧!
进入数据库:
mysql -u root -p
查看数据库:
show databases;
进入数据库:
use xxxx;
查看表:
show tables;
查看表中的数据:
select * from df_user;
删除表中的数据:
delete from xxxx where id=1;
删除表中的多条数据:
delete from df_user where id in (40,42,43,44,45,46,47,48);