查询goods表中有几种类型的商品
A: select * from goods;
B: select type from goods;
C: select type distinct from goods;
D: select distinct type from goods;
A: select * from goods;
B: select type from goods;
C: select type distinct from goods;
D: select distinct type from goods;
举一反三
- 查询goods中所有记录。 A: select all from goods; B: select distinct from goods; C: select * from goods; D: select from goods;
- 下面正确表示查询goods表中type和name的SQL语句是。 A: select * from goods; B: select type name from goods; C: select type,name from goods; D: select name type from goods;
- 查询数据表goods中的数据,命令是 A: select * from goods; B: select * from goods C: select * fromgoods; D: select from goods;
- 要查询Goods表中商品中含有“电冰箱”的商品情况,可用( ) A: SELECT * FROM Goods WHERE g_Name LIKE '电冰箱%' B: SELECT * FROM Goods WHERE g_Name LIKE '电冰箱_' C: SELECT * FROM Goods WHERE g_Name LIKE '%电冰箱%' D: SELECT * FROM Goods WHERE g_Name='电冰箱'
- 下列不能为查询列指定别名的语句是 A: select g_ID=商品号 from Goods B: select g_ID 商品号 from Goods C: select g_ID AS 商品号 from Goods D: select 商品号=g_ID from Goods