0
私は以下のSQLを持っています。それは私にpsycopg2.ProgrammingError: column "rownum" does not exist
を与えています。Postgres - 同じ列プローブで注文するとCASEを選択
SELECT *, (case when col1 = 'A' then
1
when col1 = 'B' then
2
else
3
end) as rownum
from table1
order by colb, rownum, colc