select * from
(select child as enfant,title as libelle, COALESCE(parent ,child) as Parent
from tree2) as tree2
order by COALESCE(parent , 1),parent,enfant
我在Postgres的写了这个查询和它的作品,但是当我在我的程序ASP C#中使用它,它不返回任何东西,就像他不要吨有任何数据 什么问题的任何帮助thnks和索里,我的英语SQL Postgres里
那么它听起来像C#代码是什么原因呢。当您从C#运行查询时会发生什么? –
请包含您的C#代码,以便我们可以查看是否有错误。 –