mysql:11718
From: とみたまさひろ <とみたまさひろ <tommy@xxxxxxxxxx>>
Date: Fri, 8 Jul 2005 00:02:42 +0900
Subject: [mysql 11718] Re: phpMyAdminでエクスポート後に異変
とみたです。 On Thu, 7 Jul 2005 19:01:28 +0900 荒木 満 <araki@xxxxxxxxxx> wrote: > set names / set character set > についてですが、MySQLのサイトを見ると 〜中略〜 > とありますので > set names < set character set > と解釈できるように感じるのですが、どうなのでしょう? mysql.com の日本語訳は古いです。英語のマニュアルを見ると、 http://dev.mysql.com/doc/mysql/en/charset-connection.html A SET NAMES 'x' statement is equivalent to these three statements: mysql> SET character_set_client = x; mysql> SET character_set_results = x; mysql> SET character_set_connection = x; Setting character_set_connection to x also sets collation_connection to the default collation for x. SET CHARACTER SET is similar but sets the connection character set and collation to be those of the default database. A SET CHARACTER SET x statement is equivalent to these three statements: mysql> SET character_set_client = x; mysql> SET character_set_results = x; mysql> SET collation_connection = @@collation_database; となってます。character_set_connection は http://dev.mysql.com/doc/mysql/en/server-system-variables.html The character set used for literals that do not have a character set introducer and for number-to-string conversion. ということなので、SET NAMES を使用した方がいいですね。 -- とみたまさひろ <tommy@xxxxxxxxxx> 日本MySQLユーザ会 http://www.mysql.gr.jp
11698 2005-07-07 11:18 [荒木 満 <araki@xxxx] phpMyAdminでエクスポート後に異変 11699 2005-07-07 13:35 ┗[班石悦夫 <madara@xxx] 11700 2005-07-07 13:52 ┗[荒木 満 <araki@xxxx] 11701 2005-07-07 16:02 ┗[荒木 満 <araki@xxxx] 11702 2005-07-07 17:01 ┗["T.Sasaki" <papasan2] 11703 2005-07-07 17:13 ┗[荒木 満 <araki@xxxx] 11704 2005-07-07 18:48 ┗["T.Sasaki" <papasan2] 11705 2005-07-07 19:01 ┗[荒木 満 <araki@xxxx] 11708 2005-07-07 21:02 ┣["T.Sasaki" <papasan2] 11709 2005-07-07 21:09 ┃┣["T.Sasaki" <papasan2] 11710 2005-07-07 21:17 ┃┗[荒木 満 <araki@xxxx] 11711 2005-07-07 21:37 ┃ ┗["T.Sasaki" <papasan2] -> 11718 2005-07-08 00:02 ┗[とみたまさひろ <tomm]