Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/sqlite/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Typescript 打破sql查询中的循环依赖关系。Sqlite_Typescript_Sqlite_Recursion - Fatal编程技术网

Typescript 打破sql查询中的循环依赖关系。Sqlite

Typescript 打破sql查询中的循环依赖关系。Sqlite,typescript,sqlite,recursion,Typescript,Sqlite,Recursion,若循环依赖发生并且查询冻结,是否有可能中断递归函数 with SubstitutionRecursion as (select Part_Ptr, Substituent_Ptr from model_2271_substitute where Part_Ptr = 24588687812684 union all select s.Part_Ptr, s.Substituent_Ptr from SubstitutionRecursion sr left join model_2271_sub

若循环依赖发生并且查询冻结,是否有可能中断递归函数

with SubstitutionRecursion as (select Part_Ptr, Substituent_Ptr from model_2271_substitute where Part_Ptr = 24588687812684
union all
select s.Part_Ptr, s.Substituent_Ptr from SubstitutionRecursion sr
left join model_2271_substitute s on s.Part_Ptr = sr.Substituent_Ptr
where s.Substituent_Ptr is not null)
select p.partCode, p.partDescription, p.notes from SubstitutionRecursion sr
left join model_2271_all_parts p on p.PartPtr = sr.Substituent_Ptr;