作者cspy (Perfect Stranger)
看板Database
標題[SQL ] 輸入介面的問題
時間Tue Aug 31 19:32:07 2010
最近開始接觸mysql,
原先處理英文字母的輸入輸出沒什麼問題
今天突然想試試中文字,輸入的方式有以下幾種
inset into table values ...
load data local infile .. (text file 有改為UTF8)
在輸入的介面上有點疑惑,在mysql的client介面無法輸入中文
但若以
mysql> load data local infile 'uft8.txt' into table ...
可以輸入utf8的中文字
insert into table 中文字無法輸入
update table1 set name = 中文字也無法
C:\Mysql> mysql test_db < ch_command
但是 sqlcommand 透過phpmyadmin可以輸入
我有點混淆了= = 請問這種介面的問題有解答嗎~~
謝謝!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 115.165.252.4
1F:推 SmallBeeWayn:你怎麼都沒用 `` 或 '' 將標籤或文字括起來? 08/31 21:05
2F:→ cspy:不太了解樓上的意思~~ 08/31 23:55
3F:→ tw70126:好像要把TXT的內容改掉....年代久遠 你上網找找吧 = = 09/01 00:17