- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 SQL Server 2008 插入多行数据
SQL Server 2005 插入2行INSERT dbo.UserTable(UserName) VALUES ('Fred')INSERT dbo.UserTable(UserName) VALUES ('Barney')SQL Server 2008 插入2行INSERT dbo.UserTable(UserName) VALUES ('Fred'),('Barney')
2010-09-16 21:07:00
1069
原创 LINQ方式查询数据库
using System;using System.Linq;namespace ConsoleApplication1{ class Class1 { static void Main(string[] args) { NorthwindDataContext dc = new NorthwindDataContext(); //DataContext dc = new DataCo
2010-09-14 21:32:00
490
原创 SQL Server 6种锁
<br />SQL Server 6种锁:共享,更新,排他,意向,模式,批量更新。<br />共享锁允许多个连接和事务同时读取所分配的共同资源,设置共享锁后其他连接或事务就不能修改数据。<br />更新锁防止出现死锁,只有一个进程可得到更新锁,通常用来替代共享锁。<br />排他锁防止任何并发事务或连接的进程对处于修改中的数据进行读、更新、删除操作。<br />意向锁防止在一个已被其他进程锁住资源上再加排他锁。<br />
2010-09-12 20:45:00
526
原创 IL和CLR,CTS和CLS
<br />IL(Intermediate Language)中间语言<br />CLR(Common Language Runtime)公共语言运行时<br />.NET中编译分为2各阶段:(1)把源代码编译为中间语言(IL);(2)CLR把IL编译为平台专用代码。<br />IL3个特性:平台无关性,提高性能,语言互操作性。<br /> <br />CTS(Common Type System)通用类型系统<br />CLS(Common Language Specification)公共语言规范<br
2010-09-12 20:25:00
470
原创 .NET Framework 3.5新特性
1. 隐式类型化的变量var x=5;上面语句实际上以5来确定变量类型,实际就是int x=5;2. 自动实现的属性过去声明属性:private int myItem;public int MyItem{ get { return myItem; } set { myItem=value; }}VS2008中:public int MyItem{ get; set; }3. 对象和集合初始化器在初始化对象时,可以把值赋予属性,比如有个类:public class MyClass{ publ
2010-09-11 23:41:00
391
原创 T-SQL面试题(补充中~)
1.Write one T-SQL script to get employees with the top 10 in salary amount and whose name is started with character ‘L’ (for example Liu, Li…) from the employee table. (Employee table includes “ID”, “name”, and “Salary” columns)SELECT TOP(10) ID, Name, Sal
2010-09-10 21:50:00
754
原创 VanceInfo 初试 SDET1(补充中^_^)
1.在C#中,string str = null 与 string str = “”请尽量使用文字或图象说明其中的区别。String str=null 将str指向一个空地址,没有为str分配空间,str是点不出任何东西的String str=“”将str指向一个存储着空字符串的地址,为str分配了空间,str可以点出东西来2.请详述在.NET中类(class)与结构(struct)的异同。Class可以被实例化,属于引用类型,内存分配不固定,分配在内存的堆上的,可以继承Struct属于值类型,内存分配是固
2010-09-10 21:19:00
384
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅