摘要:
数字型 类型 类型 大小 大小 范围(有符号) 范围(有符号) 范围(无符号) 范围(无符号) 用途 用途 TINYINT 1 字节 (-128,127) (0,255) 小整数值 SMALLINT 2 字节 (-32 768,32 767) (0,65 535) 大整数值 MEDIUMINT 3 阅读全文
posted @ 2017-04-08 12:16
ノGHJ
阅读(28174)
评论(1)
推荐(3)
摘要:
在sql注意时,经常会用到一个不怎么常用的联合查询 http://www.php20.com/forum.php?m ... &extra=page%3D1 清空表.从新执行一下以上链接中的sql.来试一下 [SQL] 纯文本查看 复制代码 ? 1 2 3 select title as tt fr 阅读全文
posted @ 2017-04-08 12:15
ノGHJ
阅读(284)
评论(0)
推荐(0)
摘要:
呵呵,,,有个坑,,mysql默认不支持full join 是吧. 什么是full join呢就是left+right join 可以使用union联表解决这个问题 union 链接 http://www.php20.com/forum.php?m ... &extra=page%3D1 原表链接 阅读全文
posted @ 2017-04-08 12:15
ノGHJ
阅读(5958)
评论(0)
推荐(0)
摘要:
drop table if exists news; --如果存在表则删除create table news --创建表( id int unsigned not null auto_increment, title varchar(30) not null default '' comment ' 阅读全文
posted @ 2017-04-08 10:12
ノGHJ
阅读(253)
评论(0)
推荐(0)
摘要:
left join 用于多表 >1个表比如select a.*,b.* from ta as a left join tb as b on a.aid=b.bid咱们就以实际的代码来查看一下.请看此链接建一个表. http://www.php20.com/forum.php?m ... =220&e 阅读全文
posted @ 2017-04-08 10:11
ノGHJ
阅读(762)
评论(0)
推荐(0)

浙公网安备 33010602011771号