Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax Error #13

Open
meredith-wenjunwu opened this issue Apr 17, 2017 · 1 comment
Open

Syntax Error #13

meredith-wenjunwu opened this issue Apr 17, 2017 · 1 comment

Comments

@meredith-wenjunwu
Copy link

meredith-wenjunwu commented Apr 17, 2017

您好,打扰了!

不知道为什么, 添加数据的时候总是会出现
DB Error: 1 "near ")": syntax error"

以下是我写的code:
[_db jq_createTable:@"predictedValue" dicOrModel:[NSDictionary class]];
[_db jq_insertTable:@"predictedValue" dicOrModel:currentArray];

这是debug的时候显示的currentArray里的东西
image

谢谢帮忙!

@gaojunquan
Copy link
Owner

请阅读文档或者demo, [_db jq_createTable:@"predictedValue" dicOrModel:[NSDictionary class]];
你的这条语句只是给出了表的名称, 但是表的字段没有给出, 如上, 你用的是字典建表, 那么一个简单的例子应该是这样的
[_db jq_createTable:@"predictedValue" dicOrModel:@{@"name":@"TEXT", @"sex":@"INTEGER"}];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants