摘要:
返回值组合: json返回 json数组 案例1: 1 public void GetClass(string name, string id) 2 { 3 try 4 { 5 string connectString = System.Configuration.ConfigurationSett 阅读全文
摘要:
1.top 主要是在sql server 2000中使用,效率较差 2、row_number函数 这种方法是sql server 2005以后,支持了row_number函数后,才开始使用的。 3、SQL Server 2012开始支持的 offset fetch next 方法 阅读全文
摘要:
一丶 1.利用begin try--end try 、begin catch--end catch来处理是否回滚 1 begin transaction 2 begin try 3 SQL语句1 4 SQL语句2 5 commit transaction 6 end try 7 begin catc 阅读全文
摘要:
一丶行专列案例【借鉴】 1.建立表格 IF OBJECT_ID('tb') IS NOT NULL DROP TABLE tb go CREATE TABLE tb(姓名 VARCHAR(10),课程 VARCHAR(10),分数 INT) insert into tb VALUES ('张三',' 阅读全文