请问各位高手,我要用ADOTABLE代替ADOQUERY代码的删除功能该怎样改,代码如下:
with adoquery1 do
begin
close;
sql.clear;
sql.add('delete from t_bus where c_ch='''+edit3.text+'''');
execsql;
请指教
with adoquery1 do
begin
close;
sql.clear;
sql.add('delete from t_bus where c_ch='''+edit3.text+'''');
execsql;
请指教
解决方案 »
- 明天去住院,准备手术,求祝福,散分
- 使用DBGRIDEH 和adoquery 我怎么不能显示出数据来呢 .dbgrid就可以,还有使用DBGRIDEH 进行数据输入,怎么做,包括增加\ 修改和删除
- Corba服务器端函数封装成DLL文件的问题!
- 关于文本文件读取的问题?
- 为什么我的键盘钩子已经放在dll中了,但还是不能监控系统键盘:(
- 我要在信封上打印公司的名称,怎样控制既使字体大小合适,又不会超出所画横线丫
- 如何向注册表中写入二景致数据
- 兄弟们,救救我呀!!!
- 进度条如何分割50%的问题。
- 如何实现分公司数据库与总公司数据库的定时数据更新
- 怎样得到IP(因特网)
- 用midas开发多层应用系统,设置问题,一筹莫展,大虾请进,高分奉送
with adotable1 do
begin
close; delete from t_bus where c_ch='''+edit3.text+''';
open;
不能运行
adotabel1.first;
while not adotable1.eof do
begin
adotable1.locate('c_ch',edit3.text,[]);
adotable1.delete;
adotable1.next;
end;
adotabel1.first;
while not adotable1.eof do
begin
adotable1.locate('c_ch',edit3.text,[]);
adotable1.delete;
adotable1.next;
end;