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#代碼,以便我們可以查看是否有錯誤。 –