Sql recursion without recursion

前端 未结 6 1476
故里飘歌
故里飘歌 2020-12-16 23:18

I have four tables

create table entities{
integer id;
string name;
}

create table users{
integer id;//fk to entities
string email;
}

create table groups{
i         


        
6条回答
  •  情话喂你
    2020-12-16 23:28

    If you want a truly theoretically infinite level of nesting, then recursion is the only option, which precludes any sane version of SQL. If you're willing to limit it, then there are a number of other options.

    Check out this question.

提交回复
热议问题