摘要:
打印出表的结构语句 show columns from 表名 或者 desc 表名,其中desc 表名 是 show columns from表名的一种快捷方式 查看建表的语句用 show create table 表名 使用select选出单列时候,如果数据有重复,却只想选出不同的数据可以在列名前加上distinct关键字 如: select distincv ... 阅读全文
posted @ 2013-11-25 22:01
long896130895
阅读(108)
评论(0)
推荐(0)
摘要:
union 合并2条或者多条语句的结果 语法 sql1 union sql2 mysql> select goods_id,goods_name,shop_price from goods where shop_price union -> select goods_id,goods_name,shop_price from goods where shop_price >4... 阅读全文
posted @ 2013-11-25 02:09
long896130895
阅读(249)
评论(0)
推荐(0)