![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
青春最美藏蓝色
这个作者很懒,什么都没留下…
展开
-
文字雨与飘雪花
用代码实现文字雨 <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="Generator" content="EditPlus®"> <meta name="Author" content=""> <meta name="Keywords" content=""> <meta name="Descri原创 2020-11-05 17:11:24 · 120 阅读 · 0 评论 -
触发器 2020-11-4
创建数据库和表 create database sale go use sale go create table goods ( id int primary key identity(1,1), name varchar(20) not null, count int check(count>0) ) create table sale ( id int primary key identity(1,1), gid int references goods(id), co原创 2020-11-04 18:23:15 · 118 阅读 · 0 评论 -
SqlHelper类
Using System.Configuration; Using System.Data; Using System.Data.SqlClient; Using SqlData=System.Data.SqlClient.SqlDataAdapter; public class sqlHelper { private static string StrConn=ConfigurationManager.ConnectionStrings["sql"].ConnectionString; //查询原创 2020-11-04 18:01:07 · 121 阅读 · 0 评论 -
创建存储过程,创建事务,创建视图,创建索引 2020-11-3
创建存储过程 create proc 存储过程名字 @参数 参数类型,@参数 参数类型【参数类型=默认值 output】 as begin T-SQL语句 end go 调用存储过程 exec 存储过程名字 【参数值|@参数=参数值】 删除存储过程 drop proc 存储过程名字 创建事务 begin tran 事务名称 declare @error int; set @error=0; *在张三账户上增加* update 表名 set m原创 2020-11-04 17:25:07 · 121 阅读 · 0 评论