sql server在Navicat工具不能插入数据
可以去写代码插入,代码连接sql server可以插入
或者使用sql server专门的工具
BEGIN
declare @a int;
declare @s t_amount;
select @a = baddebt_age_id,@s=rate from aa_baddebt_age;
INSERT INTO dade(id,name) VALUES(@a,@s)
END
1、插入触发器
set nocount on
declare
@shopid int,
begin
select @shopid = shopid from inserted
INSERT INTO dade(table_name,table_id,table_id_name,type,state) VALUES('d_shop',@shopid,'shopid',1,1)
end
2、更新触发器
if update (lcode)
begin
set nocount on
declare @shopid int
select @shopid=shopid from inserted
INSERT INTO dade(table_name,table_id,table_id_name,type,state) VALUES('d_shop',@shopid,'shopid',1,1)
end
3、删除触发器
begin
set nocount on
declare @shopid int
select @shopid = shopid from deleted;
INSERT INTO dade(table_name,table_id,table_id_name,type,state) VALUES('d_shop',@shopid,'shopid',1,1)
end