且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用DISTINCT进行查询需要很长时间

更新时间:2023-02-26 15:24:04

我建议您获取不同的ID,然后在列查询中获取所需的列.

I will suggest get distinct ids and then in column query get your desired columns.

类似的东西

Select (select Fehlerpfad from FehlerCodes_akt_Liste where id=A.id ) as col1, ...
from
(
   Select distinct ids from table
   .........
) A