mysql 查询复习 模糊单一字符
like 模糊查询 _单一字符 1.查出满足以下条件的商品 mysql> select goods_id,goods_name,shop_price from goods where goods_id=32; ±---------±-----------±-----------+ | goods_id | goods_name | shop_price | ±---------±-----------±-----------+ | 32 | 诺基亚n85 | 3010.00 | ±---------±-----------±-----------+ 2:不属第3栏目的所有商品 mysql> select goods_id,goods_name,shop_price from goods where cat_id!=3; ±---------±-----------------------------±-----------+ | goods_id | goods_name | shop_price | ±---------±-----------------------------±-----------+ | 1 | kd876 | 1388.00 | | 4 | 诺基亚n85原装充电器 | 58.00 | | 3 | 诺基亚原装5800耳机 | 68.00 | | 5 |