摘要: namespace HanShu{ class Class1 { /// /// 这是一个加法运算的函数 /// /// /// /// public int JiaFa(int a, int b) { return a + b; } /// /// 无返回值,无参数 /// publ... 阅读全文
posted @ 2014-12-25 11:00 巽坤 阅读(374) 评论(0) 推荐(0) 编辑
摘要: 13:52:49N U L L 2014/12/19 13:52:49using System;using System.Collections;using System.Collections.Generic;using System.Linq;using System.Text;namespac... 阅读全文
posted @ 2014-12-25 10:59 巽坤 阅读(672) 评论(0) 推荐(0) 编辑
摘要: //二维数组 int[,] second = new int[2,3]//有两个长度为三的一维数组 { {3,2,5}, {6,7,8} }; int[] shu=n... 阅读全文
posted @ 2014-12-18 10:19 巽坤 阅读(137) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication2{ class... 阅读全文
posted @ 2014-12-15 15:13 巽坤 阅读(179) 评论(0) 推荐(4) 编辑
摘要: 运算符using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication3{ cl... 阅读全文
posted @ 2014-12-11 14:21 巽坤 阅读(329) 评论(0) 推荐(3) 编辑
摘要: --导入system命名空间using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;--声明命名空间 ConsoleApplicati... 阅读全文
posted @ 2014-12-11 14:20 巽坤 阅读(163) 评论(0) 推荐(3) 编辑
摘要: 开始事务:BEGIN TRANSACTION提交事务:COMMIT TRANSACTION回滚事务:ROLLBACK TRANSACTION事务通常是以begin transaction开始的,以commit或rollback 结束,commit表示提交,既提交事务的所有操作。具体的说就是将事务中所... 阅读全文
posted @ 2014-12-07 15:41 巽坤 阅读(175) 评论(0) 推荐(3) 编辑
摘要: 视图:只能查询使用,不能新增数据和修改数据把一个查询结果当做一个虚拟表select *from (xunibiao) as xunibiaoming where 条件修改视图alter view shitu1as select *from studento删除视图drop view shitu... 阅读全文
posted @ 2014-12-07 09:12 巽坤 阅读(161) 评论(0) 推荐(3) 编辑
摘要: 存储过程porcedure 可以简写 proccreate procedure chaxunas select *from student go--执行esec chaxun --删除drop proc chaxun--修改alter--输入参数create proc jiaybai@sh... 阅读全文
posted @ 2014-12-07 09:10 巽坤 阅读(102) 评论(0) 推荐(3) 编辑
摘要: 定义变量:变量起到临时存取的作用数据空中变量名都已@开头declare @sum int 变量赋值set @sum=1select @sum=3变量使用print @sumdeclare @string varchar(20)set @string='abcdef'set @string=subst... 阅读全文
posted @ 2014-11-30 15:20 巽坤 阅读(140) 评论(0) 推荐(2) 编辑