今天用C#连接数据库的时候,想把字段名改成中文,结果就报这个错误了,:“You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘??? FROM tik_integral_detail’ at line 1”
mycom.CommandText = "SELECT id AS `用户名` FROM tik_integral_detail";
在英文状态下输入`,这个符号是键盘左边数字键1的左边那个符号(只能在英文状态下解决)