I
I
ince2019-04-03 18:56:52
SQL
ince, 2019-04-03 18:56:52

How to trace the chain in the database?

There are three fields in the table: | ID| ID_previous| Data|
In ID_previous, as you might guess, contains IDthe previous element of the chain.
How to use SQL to IDfind the last element of the chain by the first element?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
d-stream, 2019-04-03
@ince

a recursive query or a cycle
, in principle, is directly according to the manual of its subd in the recursive section

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question