简体   繁体   English

Openbravo Mysql db脚本语法错误

[英]Openbravo Mysql db script syntax error

I am unable to execute few sql queries in the mysql database from the scripts directory downloaded from the Mercurial repository of Openbravo. 我无法从从Openbravo的Mercurial存储库下载的脚本目录中在mysql数据库中执行少量sql查询。

Below is the query 以下是查询

INSERT INTO ROLES(ID, NAME, PERMISSIONS) VALUES('0', 'Administrator role', $FILE{com/openbravo/pos/templates/Role.Administrator.xml} );

#1064 - You have an error in your SQL syntax; #1064 - 您的SQL语法有错误;

I tried specifying the complete path, but still it displays syntax error. 我尝试指定完整路径,但仍显示语法错误。

INSERT INTO ROLES(ID, NAME, PERMISSIONS) VALUES('0', 'Administrator role', $FILE{/home/anand/Openbravo-POS/main/src-pos/com/openbravo/pos/templates/Role.Administrator.xml} );

Any help would be appreciated. 任何帮助,将不胜感激。

I have this on that query: 我在这个查询上有这个:

INSERT INTO ROLES(ID, NAME, PERMISSIONS) VALUES('0', 'Administrator role', $FILE{/com/openbravo/pos/templates/Role.Administrator.xml} );

Think you are missing / before com/openbravo/... 认为你缺少/com/openbravo/...之前com/openbravo/...

Sorry if it was too late 对不起,如果为时已晚

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM