这个用SQL应该怎么写呢?

如题所述

第1个回答  2015-11-29
update 表名 set 工资 = 工资 *1.1 where 生日>1960 and 生日<1980 and 姓名 like '王%'追问

请问数据库的年龄给的是出生日期。该怎么算呢?

这样的怎么写呢?

追答

你把我的汉字 换成列名就好了 日期你转换成字符串一样的比较

update Employee set Salary = Salary *1.1 where BirthDate>to_date('19600101','yyyymmdd') and BirthDate>to_date('19800101','yyyymmdd') and EmployeeName like '王%'

追问

不对呀

数据库是这样的

追答

数据库中我都没看到年份

相似回答