当前位置:Gxlcms > 数据库问题 > 常用的一些mysql语句

常用的一些mysql语句

时间:2021-07-01 10:21:17 帮助过:18人阅读

database table;

2、删除数据库

drop database table;

3、去重筛选,示例:查询记录(name值相同的只保留一条)

select * from table group by name;

4、求总条数

select count(*) as totalcount from table;

 5、登陆mysql

mysql -uroot -p

 

常用的一些mysql语句

标签:roo   group   nbsp   ase   pre   class   drop   创建   mysq   

人气教程排行