qfedu-linux-advanced-level/day9/update_employee.sql

11 lines
141 B
MySQL
Raw Permalink Normal View History

2023-08-24 17:18:04 +08:00
use studb;
update t_emp
set salary = salary + 1000;
update t_emp
set salary = salary * 1.15
where tel like '%8979$';
select * from t_emp;