I made the simplest mistake when doing SQL problems today
update salaries set salaries.salary = salaries.salary *1.1
where salaries.emp_no = (select emp_no from emp_bonus ) and to_date = '9999-01-01'
Then the idea reports an error. The error is near “.”: syntax error. In fact, when I update the salary table here, I don’t need to add “.” to index the elements in the table. I can call it directly.
update salaries set salary = salary *1.1
where emp_no = (select emp_no from emp_bonus ) and to_date = '9999-01-01'
Just change this.