要在tbAddress表中更新记录,下面()语句是正确的。A、Update tbAddress Set strName="萌萌",intAge=22 Where ID=2B、Update tbAddress Set strName=萌萌,intAge=22 Where strName=萌萌C、Update tbAddress Set dtmSubmit=2008-10-1 Where strName="萌萌"D、Update tbAddress Set intAge=18
要在tbAddress表中更新记录,下面()语句是正确的。
- A、Update tbAddress Set strName="萌萌",intAge=22 Where ID=2
- B、Update tbAddress Set strName=萌萌,intAge=22 Where strName=萌萌
- C、Update tbAddress Set dtmSubmit=2008-10-1 Where strName="萌萌"
- D、Update tbAddress Set intAge=18
相关考题:
要在tbAddress表中插入记录,下面哪条语句是正确的?() A.Insert Into tbAddress(strName,strTel) Values("萌萌","6545632")B.Insert Into tbAddress(strName,strEmail) Values("萌萌", "")C.Insert Into tbAddress(strName,strEmail) Values("萌萌",NULL)D.Insert Into tbAddress(strName,intAge) Values(萌萌,22)
执行Select Count(*) As Total From tbAddress Group By intAge语句后,会返回多少条记录? () A.0B.1C.2D.与intAge的值有关
将订单号为"0060"的订单金额改为169元,正确的SQL语句是A)UPDATE订单SET金额=169 WHERE订单号="0060"B)UPDATE订单SET金额WITH 169 WHERE订单号="0060"C)UPDATE FROM订单SET金额=169 WHERE订单号="0060"D)UPDATE FROM订单SET金额WITH 169 WHERE订单号="0060"
对于学生信息表:student(sno,sname,sex,age,dept),如果把学生“小明”的姓名改为“小强”,则正确的语句是( )。A)UPDATE SET sname=‘小明’WHERE sname=‘小强’B)UPDATE student SET sname=‘小明’WHERE sname=‘小强’C)UPDATE student SET sname=‘小强’D)UPDATE student SET sname=‘小强’WHERE sname=‘小明’
将学号为“08080110”、课程号为“102”的选课记录的成绩改为92,正确的SQL语句是 ______。A.UPDATE 选课 SET 成绩 WITH 92 WHERE 学号=“08080110” AND 课程号=“102”B.UPDATE 选课 SET 成绩=92 WHERE 学号=“08080110” AND 课程号=“102”C.UPDATE FROM 选课 SET 成绩 WITH 92 WHERE 学号=“08080110” AND课程号=“102”D.UPDATE FROM 选课 SET 成绩 =92 WHERE 学号=“08080110” AND 课程号=“102”
若要将“产品”表中所有供货商是“ABC”的产品单价下调50,则正确的SQL语句是A.UPDATE产品SET单价=50 WHERE 供货商=“ABC”B.UPDATE产品SET单价=单价-50 WHERE供货商=“ABC”C.UPDATE.FROM 产品 SET单价=50 WHERE供货商=“ABC”D.UPDATE.FROM 产品SET单价=单价-50 WHERE供货商=“ABC”
对于学生信息表:student(sno,sname,sex,age,dept),如果把学生“张明”的姓名改为“张岩”,则正确的语句是A.UPDATE SET sname='张明'WHERE sname='张岩'B.UPDATE student SET shame='张明'WHERE shame='张岩'C.UPDATE student SET sname='张岩'D.UPDATE student SET sname='张岩'WHERE sname='张明'
( 35 )将学号为 “ 02080110 ” 、课程号为 “ 102 ” 的选课记录的成绩改为 92 ,正确的 SQL 语句是A ) UPDATE 选课 SET 成绩 WITH 92 WHERE 学号 = "02080110" AND 课程号 = "102"B ) UPDATE 选课 SET 成绩 =92 WHERE 学号 = "02080110" AND 课程号 = "102"C ) UPDATE FROM 选课 SET 成绩 WITH 92 WHERE 学号 = "02080110" AND 课程号 = "102"D ) UPDATE FROM 选课 SET 成绩 =92 WHERE 学号 = "02080110" AND 课程号 = "102"
(18)若要将“产品”表中所有供货商是“ABC”的产品单价下调50,则正确的SQL语句是A)UPDATE 产品 SET 单价=50 WHERE 供货商="ABC"B)UPDATE 产品 SET 单价=单价-50 WHERE 供货商="ABC"C)UPDATE FROM 产品 SET单价=50 WHERE 供货商="ABC"D)UPDATE FROM 产品 SET单价=单价-50 WHERE 供货商="ABC"
将表Teacher中职称字段为"助教"人员改为"讲师",应为()A、UPDATE Teacher SET职称="助教"WHERE职称="讲师"B、UPDATE Teacher SET职称="讲师"WHERE职称="助教"C、UPDATE SET职称="助教"WHERE职称="讲师"FROMTeacherD、UPDATE SET职称="讲师"WHERE职称="助教"FROMTeacher
下面()语句可以查询strName为"萌萌"且是2008年8月8日前注册的用户。A、Select * From tbAddress Where strName=萌萌 And dtmSubmit#2008-8-8#B、Select * From tbAddress Where strName="萌萌"And dtmSubmit2008-8-8C、Select * From tbAddress Where strName="萌萌"And dtmSubmit#2008-8-8#D、Select * From tbAddress Where strName="萌萌"Or dtmSubmit#2008-8-8#
要在tbAddress表中插入记录,下面()语句是正确的。A、Insert Into tbAddress(strName,strTel)Values("萌萌","6545632")B、Insert Into tbAddress(strName,strEmail)Values("萌萌","")C、Insert Into tbAddress(strName,strEmail)Values("萌萌",NULL)D、Insert Into tbAddress(strName,intAge)Values(萌萌,22)
下列MySQL命令中,可以实现更新记录的命令有()。A、update 数据表参照关系 set 字段名称=值, [where 条件] [group by 字段名称]B、update 数据表,数据表, set 字段名称=值,where 条件C、update 数据表 set 字段名称=值,[where 条件]D、update 数据表 set 字段名称=值, [where 条件] [order by 字段名称]
如何实现文章表news,id字段值为5记录的点击数字段num自增()。A、Update news set num=num+1;B、Update news set num=num+1 where id==5C、Update news set num=num++ where id=5D、Update news set num=num+1 where id=5
下面()语句可以查询姓“赵”并且年龄等于22岁的用户。A、Select * From tbAddress Where strName="赵"And intAge=22B、Select * From tbAddress Where strName like"赵%"And intAge="22"C、Select * From tbAddress Where strName like"赵%"And intAge=22D、Select * From tbAddress Where strName like"%赵%"And intAge=22
使用()语句,将Account表内的性别字段内容,全部都改为“男”。A、Update account SET Sex=´女´where Sex=´男´B、Update account SET Sex=´男´where Sex=´女´C、Update FROM account SET Sex=´女´where Sex=´男´D、Update FROM account SET Sex=´男´where Sex=´女´
多选题要在tbAddress表中插入记录,下面()语句是正确的。AInsert Into tbAddress(strName,strTel)Values(萌萌,6545632)BInsert Into tbAddress(strName,strEmail)Values(萌萌,)CInsert Into tbAddress(strName,strEmail)Values(萌萌,NULL)DInsert Into tbAddress(strName,intAge)Values(萌萌,22)
多选题要在tbAddress表中更新记录,下面()语句是正确的。AUpdate tbAddress Set strName=萌萌,intAge=22 Where ID=2BUpdate tbAddress Set strName=萌萌,intAge=22 Where strName=萌萌CUpdate tbAddress Set dtmSubmit=2008-10-1 Where strName=萌萌DUpdate tbAddress Set intAge=18
单选题下面()语句可以查询姓“赵”并且年龄等于22岁的用户。ASelect * From tbAddress Where strName=赵And intAge=22BSelect * From tbAddress Where strName like赵%And intAge=22CSelect * From tbAddress Where strName like赵%And intAge=22DSelect * From tbAddress Where strName like%赵%And intAge=22
单选题下面()语句可以查询strName为"萌萌"且是2008年8月8日前注册的用户。ASelect * From tbAddress Where strName=萌萌 And dtmSubmit#2008-8-8#BSelect * From tbAddress Where strName=萌萌And dtmSubmit2008-8-8CSelect * From tbAddress Where strName=萌萌And dtmSubmit#2008-8-8#DSelect * From tbAddress Where strName=萌萌Or dtmSubmit#2008-8-8#