sybase case when SELECT a.*,case when (SELECT count(1) FROM TableA where ColumnA = a.ColumnB)=0 then Y else N end as FlagFROM TableB awhere ColumnC = 7974 Sybase 2023-12-16 35 点赞 0 评论 53 浏览