我在DELPHI里这么写的,连的是ACCESS数据库,运行报FROM子句出错。
Dateform.ADOQuery1.Close;
Dateform.ADOQuery1.SQL.Clear;
Dateform.ADOQuery1.SQL.Add('select * from User where User_Name = '''+name+''' and User_Password = '''+password+'''');
Dateform.ADOQuery1.open;能帮我看看什么地方出错了吗?
Dateform.ADOQuery1.Close;
Dateform.ADOQuery1.SQL.Clear;
Dateform.ADOQuery1.SQL.Add('select * from User where User_Name = '''+name+''' and User_Password = '''+password+'''');
Dateform.ADOQuery1.open;能帮我看看什么地方出错了吗?
解决方案 »
- delphi 控制 excel 的问题
- SetWindowPos非主窗口置顶,点击该窗口后主窗口会激活
- remobjct为什么不能使用含中文字符的sql
- 如何用delphi做成应用程序先qq一样在状态栏显示图标?(在线)
- 读过李维写的 Delphi 5.X ADO_MTS_COM+高级程序设计篇 第9章的请进。。。。。。
- 关于Socket的错误提示?
- 怎么把数据库的数据导入到excel中去
- 一个困扰我很久的问题,有难度,大家多帮忙,zswang帮忙呀,多谢了!!分不够还有!!
- Fastreport + StringGrid如何才能不打印stringgrid的fixed rows????
- Paradox的SQL语句问题!
- 怎么在标签上显示时间呀?????????
- ADO创建DBF表的问题,急!求救!!!
Dateform.ADOQuery1.Close;
Dateform.ADOQuery1.SQL.Clear;
Dateform.ADOQuery1.SQL.Add('select * from GDB_User where User_Name = '''+name+'''');
Dateform.ADOQuery1.open;
我怎样使用GDB_User表中的数据?
现在我要用其中的 User_Password,怎么样把他赋值给一个变量PASSWORD?