|
|
|
|
|
by haliliceylan
125 days ago
|
|
Thats not postgresql problem, thats your code IMHO you should never write code like that, you can either do
UPDATE employees
SET salary = salary + 500
WHERE employee_id = 101; Or if its more complex just use STORED PROCEDURE, there is no point of using database if you gonna do all transactional things in js |
|
There's essentially no difference between putting the logic in the app vs a stored procedure (other than round trip time)