摘要: SQL触发器实例1定义: 何为触发器?在SQL Server里面也就是对某一个表的一定的操作,触发某种条件,从而执行的一段程序。触发器是一个特殊的存储过程。 常见的触发器有三种:分别应用于Insert , Update , Delete 事件。 我为什么要使用触发器?比如,这么两个表: Create Table Student( --学生表 StudentID int primary key, --学号 .... ) Create Table BorrowRecord( --学生借书记录表 BorrowRecord int identity(1,1), --流水号 StudentID int 阅读全文
posted @ 2011-03-12 10:54 猪特曼 阅读(290) 评论(0) 推荐(0) 编辑
摘要: 可以使用指针在这篇文章中将描述C#的一个特性指针和所谓的不安全代码。非安全代码 非安全代码就是不在 CLR 完全控制下执行的代码,它有可能会导致一些问题,因此他们必须用 “unsafe” 进行表明: unsafe { ... // unsafe context: can use pointers here ... } 在其他一些地方也可以使用关键字 ‘unsafe’,例如我们可以将类或方法表明为非安全的: unsafe class Class1 {} static unsafe void FastMove ( int* pi, int* pdi, int length) {...} ‘unsa 阅读全文
posted @ 2011-03-12 10:20 猪特曼 阅读(341) 评论(0) 推荐(1) 编辑