# 编码转换 Joe 需要将下面这个查询 ```mysql select name from goods; ``` 中的 name 字段的字符集改为 gb 18030,他应该怎么做? ## 答案 ```mysql select convert(name using 'gb18030') from goods; ``` ## 选项 ### A ```mysql select str(name, 'gb18303') from goods; ``` ### B ```mysql select encode(decode(name, 'utf8mb4'), 'gb18303') from goods; ``` ### C ```mysql select convert(name from 'utf8mb4' to 'gb18303') from goods; ``` ### D ```mysql select convert(name to 'gb18303') from goods; ``` ### E 所有都错