I want to make a link "
For example, I have 5 messages (id: "1", id: "2", id: "3", id: "4", id: "5")
and they have a sequence
{id: "1", nextId: "2"},
{id: "2", nextId: "4"},
{id: "3", nextId: "0"},
{id: "4", nextId: "3"},
{id: "5", nextId: "0"},
when I search with "1", I got the result: {id: "1"}, {id: "2"}, {id: "4"}, {id: "3"} when searching from "5" I got the result: {id: "5"}
How to find everything beginning with {id: "1"} in ANSI SQL?
select s.id, s.nextId from sample s join sample ns on ns.id = s.nextId
He first makes node everything.
I want to run "{some id}" and I want to use "limit 10"
help me!
source share