查询数据表goods中的数据,命令是
A: select * from goods;
B: select * from goods
C: select * fromgoods;
D: select from goods;
A: select * from goods;
B: select * from goods
C: select * fromgoods;
D: select from goods;
A
举一反三
- 查询goods中所有记录。 A: select all from goods; B: select distinct from goods; C: select * from goods; D: select from goods;
- 查询goods表中有几种类型的商品 A: select * from goods; B: select type from goods; C: select type distinct from goods; D: select distinct type 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 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
内容
- 0
智慧职教: 查看商品表,比较 SELECT * FROM goods; 和 SELECT * FROM goods G; 你认为G的作用是?
- 1
若要授予用户u1在Goods表上具有查询权限,下列语句正确的是 ( ) A: GRANT ON Goods SELECT TO u1 B: GRANT TO u1 SELECT ON Goods C: GRANT SELECT ON Goods TO u1 D: GRANT SELECT TO u1 ON Goods
- 2
下面关于“CREATE VIEW v_goods AS SELECT id, name FROM goods”描述错误的是
- 3
要查询Goods表中的商品名称含有“电冰箱”的商品情况,可以使用()命令 A: select*fromGoodswhereg_Namelike'电冰箱%' B: select*fromGoodswhereg_Namelike'电冰箱_' C: select*fromGoodswhereg_Namelike'%电冰箱%' D: select*fromGoodswhereg_Name='电冰箱'
- 4
在SQL中查询数据,要从第4条开始查询,查询3条记录的语句是()。 A: select * from 表名 B: select * from 表名 where 位置=4 and 个数=3 C: select * from 表名 where 4,3 D: select * from 表名 limit 4,3