mysql> insert into test.goods
-> select goods_id,cat_id,goods_sn,goods_name,click_count,goods_number,market_price,shop_price,add_time,is_best,is_new,is_hot from gyshop.goods;
mysql> #chaxun shangpin zhujian wei 32d shangp .
mysql> select goods_id,goods_name,shop_price from goods where goods_id=32;
mysql> select goods_id,cat_id,goods_name from goods where cat_id !=3;
mysql> select goods_id,cat_id,goods_name from goods where cat_id <> 3;
mysql> select goods_id,cat_id,goods_name,shop_price from goods where shop_price>3000;
mysql> select goods_id,cat_id,goods_name,shop_price from goods where shop_price <=100;
mysql> select goods_id,cat_id,goods_name from goods where cat_id in (4,11);
mysql> select goods_id,goods_name,shop_price from goods where shop_price between 100 and 500;
mysql> select goods_id,cat_id,goods_name from goods where cat_id not in (3,11);
mysql> select goods_id,cat_id,goods_name from goods where cat_id !=3 and cat_id !=11;
mysql> select goods_id,goods_name,shop_price from goods where shop_price>=100 and shop_price<=300
-> or shop_price>=400 and shop_price<=5000;
mysql> select goods_id,goods_name,shop_price from goods where shop_price>=100 and shop_price<=300
-> or shop_price>=4000 and shop_price<=5000;
mysql> select goods_id,goods_name,cat_id,shop_price,click_count
-> from goods
-> where cat_id = 3 and (shop_price<1000 or shop_price>3000) and click_count>=5;