如何提高SQL查询/存储过程的百分比?[已关闭]已经回答了!
答案 0 :(得分:6)
试试这个:
如果您只想选择:
SELECT ename, esalary * 1.1
INTO name, salary
FROM employee
WHERE eno='113'
如果您想要更新
UPDATE employee
SET salary = salary * 1.1
--If the base salary is store in esalary then use
--SET salary = esalary * 1.1
WHERE eno='113'
答案 1 :(得分:1)
要select
,请尝试以下操作:
select name, salary * 1.1 from Employee where Eno='113';
到update
update employee set salary = salary * 1.1 where eno = '113'