自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(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

原创 查看目录文件夹大小

du -sh *

2016-05-12 09:28:11 110

原创 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

原创 lua book

[url]http://lua.ren/topic/157/lua书[/url]

2016-05-05 10:26:20 77

原创 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

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除