摘要:
为什么建表时加not null default‘’或者default0 为什么不希望列的值不为null? null是空,null的比较需要特殊的运算符 is null is not null select * from test where name is not null;取出不是null的值 select * from test where name is nul... 阅读全文
posted @ 2013-11-23 22:08
long896130895
阅读(101)
评论(0)
推荐(0)
摘要:
查询模型 列就是变量,在每一行上,列的值都在变化 where条件是表达式,在哪一行上表达式为真,哪一行就取出来,比如 下面的条件,shop_price 在不同的行 有不同的值,在哪一行时,shop_price>500 如果为真,则这一行就取出来 查询结果集在结构上可以当成表看 where的子查询 查询最新的商品 mysql> select goods_name,go... 阅读全文
posted @ 2013-11-23 04:14
long896130895
阅读(297)
评论(0)
推荐(0)