标签:MySQL
1.MySQL需要重新部署,删除哪两个文件和执行什么命令删除arch和data目录
create database db;
grant all privileges on db.* to user@‘198.168.137.110‘ identified by ‘123456‘;
flush privileges;
%表示任意ip
update mysql.user set host=‘%‘ where user = ‘user‘;
flush privileges;
desc tb_name;
show columns from tb_name;
order by xxx
默认为升序
group by having
group by 的字段要在查询字段中
就是查询结果形成的临时表
union 会去重 union all不去重
like ‘__j%‘
left join,right join,inner join
左表
标签:MySQL
原文地址:http://blog.51cto.com/10814168/2121745