タグ

ブックマーク / noborus.github.io (1)

  • SQLのORDER BY 列番号と式 :: Noboru Saito's page

    きっかけtom__boさんが書かれた8.0.22でのprepared statementの挙動変化 で、ORDER BY に列番号を指定する問題に注目が集まりました。 その中で紹介されていた、 For a prepared statement of the form SELECT expr1, expr2, … FROM table ORDER BY ?, passing an integer value N for the parameter no longer causes ordering of the results by the Nth expression in the select list; the results are no longer ordered, as is expected with ORDER BY constant. 「the results are n

    SQLのORDER BY 列番号と式 :: Noboru Saito's page
    mohno
    mohno 2024/05/31
    「ORDER BYは列番号を使用できる実装が多く存在します」←なにそれ、イラネ、と思ったら、「一旦SQL-92で標準に入った(その後削除されたらしい)」
  • 1