2008年8月15日 星期五

SQL SERVER trigger 中的 SQL 語法範例

update

update a set c1=i.c1 from inserted i,table1 a where i.id=a.id;

insert

insert into table1 (c1) select c1 from inserted;


inserted 代表新增或更新的資料列表格

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...