下面选项中,用于将表user中字段age值更新为55的SQL语句是
A: ALTER TABLE user set age=55;
B: UPDATE user set age=55 where age=55;
C: UPDATE user set age=55;
D: UPDATE user set age=55 where age<=55;
A: ALTER TABLE user set age=55;
B: UPDATE user set age=55 where age=55;
C: UPDATE user set age=55;
D: UPDATE user set age=55 where age<=55;
举一反三
- 下面选项中,能够更新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';
- 控制台修改表USER,往表中增加一个整形非空字段AGE的语句正确的是( )。 A: ALTER TABLE USER ADD AGE INT NOT NULL B: DROP TABLE USER C: CREATE TABLE IF NOT EXISTS USER D: ALTER TABLE USER AGE INT NOT NULL
- 使用SQL语句将学生表STUDENT中的学生年龄AGE字段的值增加1岁,应该使用的命令是( )。 A: UPDATE SET AGE WITH AGE+1 B: REPLACE AGE WITH AGE+1 C: UPDATE STUDENT SET AGE=AGE+1 D: UPDATE STUDENT AGE WITH AGE+1
- 将STUDENT表中所有学生年龄AGE字段值增加1岁,应使用命令( ). A: REPLACE AGE WITH AGE+1 B: UPDATE SET AGE WITH AGE+1 C: UPDATE STUDENT AGE WITH AGE+1 D: UPDATE STUDENT SET AGE=AGE+1
- 使用SQL命令将STUDENT中的学生年龄AGE字段值增加1岁,应该使用的命令是( )。 A: REPLACE AGE WITH AGE+1 B: UPDATE STUDENT AGE WITH AGE+1 C: UPDATE STUDENT SET AGE=AGE+1 D: UPDATE SET AGE WITH AGE+1