where 过滤数据,条件筛选
- select prod_price from products where prod_price=199;
- select prod_price from products where prod_price<199 order by prod_price; order by(排序)要在where(筛选)之后。
- select prod_name from products where prod_name!=apple;
- elect prod_price from products where prod_price between 199 and 499;
- select prod_price from products where prod_price is null;
null值和0、空字符串、空格不同。
《SQL必知必会》-学习记录。