Answer the question
In order to leave comments, you need to log in
How to change data in multiple rows of SQL query?
Hello.
There is a table like this:
id | paren_id | left_key | righ_key | name
1 | 0 | 1 | 2 | категория 1
1 | 1 | 5 | 6 | категория 2
1 | 1 | 3 | 4 | категория 3
1 | 0 | 7 | 8 | категория 4
Answer the question
In order to leave comments, you need to log in
I use transactions..
You can write as many requests as you like, combine them into a sequence and send.
The transaction engine will lock changes, execute all requests, and roll back all changes if something goes wrong.
PDO
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question