摘要:
create table test(id int IDENTITY,amount int check(amount >=1000 and amount<=5000));SELECT * FROM dbo.test/*下面这个语句不检查约束:*/SET IDENTITY_INSERT dbo.test... 阅读全文
摘要:
语法:SETIDENTITY_Insert[TableName]ON示例:SET IDENTITY_INSERT dbo.table1 ON INSERT INTO dbo.table1(id,username) values(1,'admin') SET IDENTITY_Insert dbo.table1 OFF -- 可省略,会话完毕后,当前开关由系统自动关闭 阅读全文
摘要:
程序主题部分摘自msdn中Thread 类的示例说明,地址:http://msdn.microsoft.com/zh-cn/library/System.Threading.Thread(v=vs.110).aspx附改动后的代码:主体代码:static void Main(string[] args) { Console.WriteLine("Main thread: Start a second thread."); List listT = new List(); for (int i = 0; i < 5;... 阅读全文