select prod_name, prod_price from Products where prod_price=3.49;在where字句和order by 同时使用时,order by 应位于 where 之后!!!

2、where字句操作符
| 操作符 | 说明 |
|---|---|
| = | 等于 |
| <> | 不等于 |
| != | 不等于 |
| < | 小于 |
| <= | 小于等于 |
| !< | 不小于 |
| > | 大于 |
| >= | 大于等于 |
| !> | 不大于 |
| between | 在指定的两个值之间 |
| is null | 为 null 值 |
select prod_name, prod_price from Products where prod_price between 5 and 10;
select cust_name from Customers where cust_email is null;
在这里开始写入
mysql基本操作(2)
演示数据下载地址:http://knowledge.zzhgod.com/file/mysql数据库文件.zip
mysql