J
J
John2017-03-21 11:01:10
MySQL
John, 2017-03-21 11:01:10

Who knows all sql queries Nested Set?

Please tell me (working) sql queries to update the left_key and right_key keys when adding, deleting and moving nodes. I would like to see how you do it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2017-03-21
Doe

An almost textbook article on this topic is Managing Hierarchical Data in MySQL .
A Russian-language article on Habré containing listings of a complete set of ready-made triggers for working with nested sets in PostgreSQL - Nested Sets + PostgreSQL TRIGGER .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question