为什么TADOCommand总是提示" update()语法错误!"
Cmd := TADOCommand.Create(nil);
Cmd.Connection := dataform.conn;
if dataform.conn.InTransaction then dataform.conn.RollbackTrans;
dataform.conn.BeginTrans;
user_id := trim(edit3.Text );
user_name := trim(edit1.Text );
pass_word := trim(edit2.Text );
memo_1 := trim(Memo1.Text );
cmd.CommandText := 'update tbuse set password =:pass_word
' where userid =:user_id;
cmd.Parameters.ParamByName('pass_word').Value := pass_word;
cmd.Parameters.ParamByName('user_id').Value := user_id;
cmd.Execute ;
为什么总是提示" update()语法错误!"
Cmd.Connection := dataform.conn;
if dataform.conn.InTransaction then dataform.conn.RollbackTrans;
dataform.conn.BeginTrans;
user_id := trim(edit3.Text );
user_name := trim(edit1.Text );
pass_word := trim(edit2.Text );
memo_1 := trim(Memo1.Text );
cmd.CommandText := 'update tbuse set password =:pass_word
' where userid =:user_id;
cmd.Parameters.ParamByName('pass_word').Value := pass_word;
cmd.Parameters.ParamByName('user_id').Value := user_id;
cmd.Execute ;
为什么总是提示" update()语法错误!"
...全文
相关推荐
Delphi7之ADO组件+DBGrid增删改查
Delphi7之ADO组件+DBGrid增删改查!Delphi7之ADO组件+DBGrid增删改查!
delph7 +sql 入库
delph7 +sql2000 入库 dbgid+ado 框架
delphi-Access.zip_Delphi Database_accesss_delphi
delphi 操作ACCESSS数据库简单例子
计算机软件-编程源码-Delphi中通过ADO组件使用原生ADO对象.zip
计算机软件-编程源码-Delphi中通过ADO组件使用原生ADO对象.zip
delphi增删改查使用存储过程小模块
delphi增删改查使用存储过程小模块, 右下角 还有关于Delphi,SQL,C#的资料


数据库相关
