# 编码转换 Joe 需要将下面这个查询 ```mysql select name from goods; ``` 中的 name 字段的字符集改为 gb 18030,他应该怎么做? 点击进入[MySQL实战练习环境](https://mydev.csdn.net/product/pod/new?image=cimg-centos7-skilltreemysql&connect=auto&create=auto&utm_source=skill)。 ## 答案 ```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 所有都错