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 '-> SET setting='DB'-> WHERE id=1' at line 1
Install.sql里面語句如下
UPDATE `{dbprefix}module`
-> SET setting='DB'
-> WHERE id={moduleid};
后臺保存欄目數(shù)據(jù)后,然后復(fù)制出你圖片里面值就行了,通過自己的程序update寫入sql
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
回復(fù)@官方插件技術(shù)-陳光 哦,我以為跟配置字段一樣有配置文件和規(guī)則的。只能寫在Install.sql里面是嗎。。
回復(fù)@官方插件技術(shù)-陳光 你好,
我這么寫提示錯(cuò)誤。。錯(cuò)誤內(nèi)容:
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 '-> SET setting='DB'-> WHERE id=1' at line 1
Install.sql里面語句如下
UPDATE `{dbprefix}module` -> SET setting='DB' -> WHERE id={moduleid};不太搞得清楚這個(gè)。。
記錄下語句,留給同樣需要的人,以下語句是OK的
REPLACE INTO `{dbprefix}module` VALUES({moduleid},1,1,1,1,1,1,);其中的1是需要修改的內(nèi)容,好像留空不行。