[英]how to change the column name from source by one step in mariadb , c++
你好,当我的版本从mysql 5.6更改为mariadb 10.2.13时,我遇到了新问题
语句中的这个问题我有包含Windows列和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)
但是我不明白这一点,请有些人可以为我解释一下,对不起,我英语不好。
每当您对包含列名称的MariaDB发出SQL查询时
window
写
`window`
代替。 例如,如果您发出查询
SELECT * FROM window;
更改为
SELECT * FROM `window`;
是的,您需要在整个代码中进行更改。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.