bạn có thể làm điều gì đó như thế:
select
(select id from table X where X.something = 123) as row1Id,
(select id from table X where X.something = 456) as row2Id,
(select id from table X where X.something = 789) as row3Id
bạn có thể làm điều gì đó như thế:
select
(select id from table X where X.something = 123) as row1Id,
(select id from table X where X.something = 456) as row2Id,
(select id from table X where X.something = 789) as row3Id