在delphi中,我用update来更新记录,其语句为:
sql.add('update Tuser set 秘密='''+edit1.text+''' where 密码=''11''');
其中tuser 是表名,我一运行时就出现error creating cursor handle这种错误,怎么改?
sql.add('update Tuser set 秘密='''+edit1.text+''' where 密码=''11''');
其中tuser 是表名,我一运行时就出现error creating cursor handle这种错误,怎么改?
解决方案 »
- 怎么通过命令行来运行pascal程序
- 50分请教一个简单问题,关于MessageBox
- adoquery 对SQL怎样绑定参数??
- DLL中显示MDI窗体的问题,急!!!!!!!!!!!!!!!!!!
- ADOQuery支持DDL(SQL)吗?
- DBGrid与PopupMenu菜单结合问题,帮忙谢谢.
- 用ADO连接Access数据库的出错信息
- 有没有将代码转为流程图的工具,我用过Sourcecode2Flowchart不太好
- 如何将生成的随机数,按升序排列,并且都显示为两位数,比如6显示为06
- 能不能在Delphi中用TWebBrowser控件保存网页(包括图片),不用弹出保存对话框这么麻烦?
- >经常来CSDN,有厦门的程序员朋友吗? <
- 用InstallShield做安装包,怎样能让它在安装时执行一个EXE文件(应用程序服务器程序)。
用AdoQuery例子
with QdoQuery1 do
begin
close;
sql.clear;
aql.text:='update Tuser set 秘密='''+edit1.text+''' where 密码=''11''';
sqlexec;
end;
用AdoQuery例子
with AdoQuery1 do
begin
close;
sql.clear;
aql.text:='update Tuser set 秘密='''+edit1.text+''' where 密码=''11''';
execsql;
end;
aql.text:='update Tuser set 秘密='''+edit1.text+''' where 密码=''11''';中的aql.text是什么意思啊?我看不懂
CursorType := ctKeyset;有没有动态改变鼠标形状
with query do
begin
close;
sql.clear;
sql.add('update Tuser set 秘密='''+edit1.text+''' where 密码=''11''');
execsql;
end;
这里面怎么判断呢?
if 密码=一个值then
sql.add('update Tuser set 秘密='''+edit1.text+''' where 密码=''一个值 ''');
else
sql.add('update Tuser set 秘密='''+edit1.text+''' where 密码=''相应值''');