---------------------------
Project project.exe raised exception class EDatabaseError with message 'qrknow: CommandText does not return a result set'. Process stopped. Use Step or Run to continue.
请问这个是什么原因,如何解决??
Project project.exe raised exception class EDatabaseError with message 'qrknow: CommandText does not return a result set'. Process stopped. Use Step or Run to continue.
请问这个是什么原因,如何解决??
qrknow.ExecSQL;
原因是你的所执行的sql语句不是查询语句,所以没有返回值
这时应该用
query1.ExecSQL; //not query1.Open;
从错误提示看,你执行的是update, 或insert等更新,插入或定义SQL语句可以揭帖了.
查询返回就用Open