在adoquery中编写sql插入语句的问题。
我刚才用它的sql编辑器写了查询功能可以用了。
但是我用相似的办法写插入功能就提示:
adoquery1:commandtext does not return a result set.
我写的插入代码如下:
adoquery1.close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('insert power(power,pass,id)');
adoquery1.SQL.Add('values("hehe"+","+"hehe"+","+"hehe")');
adoquery1.open;
可能是我方法错了,但是看帮助里用adoconnection的execute又不会写参数。
请大家帮忙看看。