摘要:
where字句用来过滤查询的数据,它对字面量大小写是敏感 1.比较运算符>,<,=,<=,>=,!=(^=,<>) 逻辑运算符 and or 先计算and后or in(a,b,c,) =a or = b or =c not in(a,b,c)既不是a也不是b,也不是c !=a and !=b and 阅读全文
摘要:
1简单查询 select* from 表名 select name as“姓名”fromstu (把name改为名字) 2条件查询 where 后面跟条件 条件要写清楚 3模糊查询 like no like %代表任意多个字符 _代表一个字符 4排序查询 order by 字段 排序值 (desc降 阅读全文