你好我将我的版本从mysql 5.6更改为mariadb 10.2.13
时遇到了新问题这个问题在语句中我有包含windows列和窗口的表A是mariadb在语句中保留的字,我不需要更改列名称,因为表格很大而且我的源码很大,当我改变这个需要编辑我的所有来源,我问有些人我有这个答案
Instead of changing window to windows, you can simply change it to `window`. (this little change is present on mysql8.0 as well)
Including <mariadb>'s includes isn't 100% required (at must, it's suggested to do so) since the <mysql>'s ones are also added when installing mariadb.
Instead of directly adding the mariadb define in CFLAGS, you can perform a check like mysql --version | grep -c MariaDB.
By default, when linking mariadb, several other dynamic .so are included in the game. (it may be annoying)
但我无法理解这一点,有些人可以为我解释一下,感谢所有对不起,我的英语很差
答案 0 :(得分:0)
每当您向MariaDB发出包含列名
的SQL查询时
window
写
`window`
代替。例如。如果您发出查询
SELECT * FROM window;
将其更改为
SELECT * FROM `window`;
是的,您需要在整个代码中更改它。