siabanie Posted August 8, 2011 Share Posted August 8, 2011 Hi all, I like to rename my table's column. My table name is: utf8_Alter Field: Branch In the Branch field I have few columns name I tried to change the name with this query: But it didn't work. ALTER TABLE `utf8_Alter` CHANGE `ゴルダーズグリーン` `ーン ノースロンドン` varchar( 64 ) MySQL said: Documentation #1054 - Unknown column 'ゴルダーズグリーン' in 'utf8_Alter' The Collation in phphMyAdmin is :utf8_general_ci Can anyone assist me what I did wrong here? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/244214-rename-table-column-not-working/ Share on other sites More sharing options...
fenway Posted August 8, 2011 Share Posted August 8, 2011 There is something strange with your collations -- not sure from where you're issuing that query. In general, though, it's preferable to stick to ASCII-based table names & column names. Link to comment https://forums.phpfreaks.com/topic/244214-rename-table-column-not-working/#findComment-1254413 Share on other sites More sharing options...
siabanie Posted August 8, 2011 Author Share Posted August 8, 2011 There is something strange with your collations -- not sure from where you're issuing that query. In general, though, it's preferable to stick to ASCII-based table names & column names. I am using phpMyAdmin to run the query and the collations said for multilingual I gotta choose UTF-8. Isn't that correct? Link to comment https://forums.phpfreaks.com/topic/244214-rename-table-column-not-working/#findComment-1254509 Share on other sites More sharing options...
fenway Posted August 9, 2011 Share Posted August 9, 2011 It is correct, if it's configured correctly. Link to comment https://forums.phpfreaks.com/topic/244214-rename-table-column-not-working/#findComment-1254992 Share on other sites More sharing options...
siabanie Posted August 10, 2011 Author Share Posted August 10, 2011 Yes thanks I think it's correct but when I try to run the query in PhpmyAdmin: ALTER TABLE `utf8_Alter` CHANGE `ゴルダーズグリーン` `ーン ノースロンドン` varchar( 64 ) I got an error: MySQL said: Documentation #1054 - Unknown column 'ゴルダーズグリーン' in 'utf8_Alter' The UTF-8 is set okay but not sure what I missed here..any idea? Link to comment https://forums.phpfreaks.com/topic/244214-rename-table-column-not-working/#findComment-1255257 Share on other sites More sharing options...
fenway Posted August 10, 2011 Share Posted August 10, 2011 That means the UTF-8 isn't "set okay". Link to comment https://forums.phpfreaks.com/topic/244214-rename-table-column-not-working/#findComment-1255307 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.