- 博客(9)
- 问答 (3)
- 收藏
- 关注
原创 存储过程
[code="sql"] #delimiter $$ drop procedure t; create procedure t(a int) begin select * from aa where aa.a = a; end; #$$ #delimiter; call t(1); [/code]
2016-05-16 22:35:52 67
原创 union
[code="sql"] select * from aa 1 1 2 2 select * from bb 1 1 2 4 11 11 select * from aa union select * from bb 1 1 2 2 2 4 11 11 select * from aa union all select * from bb ...
2016-05-14 09:00:28 72
原创 left/right join
[code="sql"] select * from aa left join bb on aa.b = bb.b [/code] a b b1 d 1 1 1 3 2 2 2 4 3 3 NULL NULL 1 4 NULL NULL 2 5 NULL NULL [code=...
2016-05-09 22:34:27 72
原创 mysql去除日志文件
1.登录数据库后执行: reset master; 2.vi /etc/my.cnf 注释掉下面2行,取消日志的生成 #log-bin=mysql-bin #binlog_format=mixed 3.重启数据库
2016-05-09 17:03:38 81
原创 group by
[code="sql"] select a,b from aa a b 1 1 2 2 1 3 1 4 2 5 [/code] [code="sql"] select a,sum(b) from aa group by a a sum(b) 1 8 2 7 [/code]
2016-05-07 07:57:34 73
原创 mysql in
[code="sql"] select * from city where name not in ('Kabul','Qandahar') [/code]
2016-05-03 21:56:04 69
原创 mysql case
[code="sql"] select case name when 'kabul' then 'k' else 'other' end as 'name' from city; [/code] name k other other other other ...
2016-05-02 07:43:54 70
空空如也
想学习perl,ruby,python中的一种
2012-07-04
模板类怎么在另一个文件中使用?
2011-05-13
linux下的cdt在debug看内存值的时候背景色是黑的,怎么变成白色
2011-03-11
TA创建的收藏夹 TA关注的收藏夹
TA关注的人