Mysql使用大全-从基础到存储过程(三)
索引适合于where字句或者连接字句列
对于唯一值使用唯一索引 www.2cto.com
添加新用户 grant select,insert,update,delete on *.* to Yoby@localhost identified by 'mysql';
查看用户权限 show grants for 'root'@'localhost';
移除权限 revoke all on *.* from root@localhost;
group by id 分组
having 限制字句
select1 union select2 联合查询有重复去掉保留一行
select2 union all select2 所有行合并到结果集中去
这是一份最完整的mysql笔记,需要的可以复制保存了!
摘自 青竹博客