QT数据插入数据语法
QString insert = "insert into test1(IP, username, ltnr, time)values('"+ipAddress"','"+userName"','"+message"','"+time"')";
提示错误:
1>widget.cpp
1>.\widget.cpp(81) : error C2143: 语法错误 : 缺少“;”(在“字符串”的前面)
1>.\widget.cpp(81) : error C2143: 语法错误 : 缺少“;”(在“字符串”的前面)
1>.\widget.cpp(81) : error C2143: 语法错误 : 缺少“;”(在“字符串”的前面)
1>.\widget.cpp(81) : error C2143: 语法错误 : 缺少“;”(在“字符串”的前面)
这个是照着教程写的不知道哪里错了,求大神指点一下。