mysql> grant all privileges on cakephp.* to [email protected] identified by 'lpfukia';
Query OK, 0 rows affected (0.01 sec)
mysql>
mysql>
mysql>
mysql> flush privileges;
$1 >> 第一條命令: 授權192.168.14.1 主機的cakephp用戶訪問cakephp數據庫
$2 >> 第二條命令: 刷新授權表
blog.sina.com.cn/s/blog_406127500100pvar.html
select name, count(name) as shu from A 用這個句子做一個視圖B
然後……
select A.name,max(B.shu) as exp1,其他列..., from A inner jion B on A.name = B.name group by (除了shu意外的所有列都要聚束。)