摘要: 1.连接查询 select * from 表1,表2 形成笛卡尔积 select * from info,nation where info.nation=nation.code select info.code,info.name,info.sex,nation.name as'要修改的列名',i 阅读全文
posted @ 2016-10-17 15:09 带你疯 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1.范围查找 select * from 表名 where price>40 and price<80 select * from 表名 where price between 40 and 80 2.离散查询 select * from 表名 where price=30 or price=50 阅读全文
posted @ 2016-10-17 10:17 带你疯 阅读(138) 评论(0) 推荐(0) 编辑