SELECT /*!99999 helllo world */ ... というBKがありますぉ RT @kamipo: mysqlでクエリにコメント書いても show full processlist 見るとパースされて消え去ってて無念だ…。 #mysql
2010-05-26 15:39:06 via web
# mysql --help|grep comments -c, --comments Preserve comments. Send comments to the server. The default is --skip-comments (discard comments), enable with --comments comments FALSE
ぜんぜん知らなかった…。
どうやらコメントが捨てられるのはshellからmysqlコマンドを使ったときだけで
perlとrubyのDBIと、phpのmysql、mysqli、pdoから試したところコメントは表示されてました。
id:kazuhooku++ id:sh2++