有一基础数据表,在DBGrideh做成的界面中维护,有多个角色维护多个字段,我现在的做法是每个角色更改一个字段后将整条记录追加到另外的表中,便于查询什么角色,什么时间更改的,但这样只能查到更改的是哪条记录,无法查到更改的是哪个字段,请问在这方面有没有什么更好的方法?
解决方案 »
- Delphi listview中已有的记录如何保存到数据库表中?
- Delphi 系統退出時候出現問題
- ListBox的使用问题
- 还是GIF的问题
- 什么是.udl文件?
- ShellExecute(Handle, 'open', PChar('c:\test\app.exe'), nil, nil, SW_SHOW);请问这里地两个nil是什么意思?
- 数据库数据导出到EXCEL的问题,单位工资发放,急!!!
- 如下定义接口和控件中使用接口是什么意思?接口应怎样使用?为什么我的控件使用接口后不能接收到鼠标消息,而别的使用这接口控件却将本应
- 物归原主,散分5000,no.1
- combobox中如何设置TEXT
- delphi字符串简单问题
- 我想在DLL中操作注册表
go
insert tb_a
select 'a'
union
select 'b'
--try
create trigger t_a on tb_a
after insert
as
if (select count(*) from tb_a where a1 in (select a1 from inserted))>1
begin
delete from tb_a where [id] in (select min([id]) from tb_a where a1 in (select a1 from inserted))
end
go
insert tb_a
select 'a'
union
select 'b'
--try
create trigger t_a on tb_a
after insert
as
if (select count(*) from tb_a where a1 in (select a1 from inserted))>1
begin
delete from tb_a where [id] in (select min([id]) from tb_a where a1 in (select a1 from inserted))
end
是支持触发器的,具体用法可直接参考自带的样例
其实楼上已经贴出来一些了