• 2022-06-07
    更新goods表中A002商品价格(Gprice)为2600。(判断以下SQL语句是否正确)UPDATE goods SET Gsaves=2600 WHERE GID='A003';
  • 错误

    内容

    • 0

      下面选项中,能够更新user表中数据的SQL语句是() A: update into user set id = 'u001'; B: update user set id = 'u001' and username='jack'; C: update user set username='jack' where id = 1; D: update into user set id = 'u001', username='jack';

    • 1

      下面选项中,能够更新表student中id值小于4的SQL语句是() A: ALTER TABLE student where id<4; B: UPDATE student set grade=100 where id<4; C: UPDATE student set grade=100 where id<=4; D: UPDATE Table student set grade=100 where id<4;

    • 2

      删除Goods表中,g_ID='040002'的商品信息语句是_______ from Goods where g_ID='040002'

    • 3

      要查询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='电冰箱'

    • 4

      对update goods set weight=weight+5 where gno='2016001'与 update goods set weight=weight+5 两条语句的差异,描述错误的是( ) A: 第一条语句是把特定记录的weight值增加了5 B: 第二条语句是把所有记录的weight值增加了5 C: goods是被修改数据的表的名字 D: weight不是被修改的字段名字