索引表
index_name index_keys
SYS_C002464 字段一,字段二,字段三
如果我要是根据索引来删除表的记录的话是不是
delete from SYS_C002464 where 字段一 = 条件如果查询的话是不是
select * from SYS_C002464 where 字段一 = 条件这样对吗?
index_name index_keys
SYS_C002464 字段一,字段二,字段三
如果我要是根据索引来删除表的记录的话是不是
delete from SYS_C002464 where 字段一 = 条件如果查询的话是不是
select * from SYS_C002464 where 字段一 = 条件这样对吗?
begin
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('select *');
adoquery1.SQL.Add('from kuwzmx');
adoquery1.SQL.Add('where 单号='''+edit1.text+'''');
adoquery1.SQL.Add('and 性质='''+striocx+'''');
adoquery1.SQL.Add('and 仓库名称='''+combobox2.Text+'''');
adoquery1.SQL.Add('order by ID');
adoquery1.Open;
end;
删除
begin
adoquery1.Close;
adoquery1.SQL.Clear;
adoquery1.SQL.Add('delete *');
adoquery1.SQL.Add('from kuwzmx');
adoquery1.SQL.Add('where 单号='''+edit1.text+'''');
adoquery1.SQL.Add('and 性质='''+striocx+'''');
adoquery1.SQL.Add('order by ID');
adoquery1.Open;
end;