#174. Update

Update

说明

user表结构

列名 类型 说明
id int 编号
username varchar(20) 用户名
age int 年龄
wages decimal(16,2) 工资

请用sql语句给用户名为tom的员工的工资增加1000,然后查询用户名为tom的员工的工资。

样例

输入数据1

drop table if exists user;
create table user(id int,username char(10),age int,wages decimal(16,2));
insert into user values(2,'tom',19,4000.5);

输出数据1

5000.5