Is it possible to update two tables that write a single query?
So, I do not need to fulfill two requests and track whether both of them are successful?
You cannot do this in a request, but you can do it as a transaction when all requests in a transaction are either successful or unsuccessful.
You can write a stored procedure that updates two tables and returns everything you need to determine success. Then this stored procedure can be called from one command. However, it should still contain two queries.
No, this is impossible AFAIK.
EDIT: what is the reason for achieving this in a single query?
You can use transactions , but you still need to update the tables separately and check the results before executing or rolling back.
Of course you can use triggers
Source: https://habr.com/ru/post/1304233/More articles:Doesn't Visual Studio 2008 compiler start automatically with sqrt in C ++? - c ++What is the difference between drop and delete database? - sqlHow is dynamic memory allocation handled when high reliability is required? - memory-managementhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1304231/newbie-python-error-in-regards-to-import&usg=ALkJrhiAjqSrf2HxUyMqEWCjwNIsbG4MVQSoundManager2 has an irregular delay - javascriptProblem with retrieving RETS data - retsWhere can I get SQL for the default Oracle "HR" schema? - oracleDaily / Weekly / Monthly counting the number of records through StoredProcedure - c #How to write parsed stream dump format - javaTCP Multicast and Multithreading - multithreadingAll Articles