标签:MySQL
1.join哪几种left join
right join
inner join
左表
group by
group by column
查询列要放到group by里面,函数除外
having
不是 默认是升序
create table b as select * from a where 1=2;
GRANT ALL PRIVILEGES ON ruozedata.* TO ‘rz‘@‘%‘ identified by ‘123‘;
flush privileges;
任意ip
union去重 union all不去重
不对 不能有空格
show processlist;
kill id
use ruozedata;
show databases;
show tables;
mysql.user
desc table_name;
show columns from table_name;
UPDATE mysql.user SET Password=PASSWORD("123456") WHERE Host=‘%‘ AND User=‘yonghu‘;
标签:MySQL
原文地址:http://blog.51cto.com/10814168/2117797