共 7 篇文章 |
|
事务!!!事务由事务开始(begin transaction)和事务结束(end transaction)之间执行的全体操作组成。即一个事务内部的操作及使用的数据对并发的其他事务是隔离的,并发执行的各个事务之间不能互相干扰。:( '', 16, 1) with Log --记录日志Return -1 --返回错误号endExec @i=sp填单 @m,@iOperatorif @i<>0beginRollback Tran --... 阅21 转0 评0 公众公开 12-11-15 15:15 |
asp.net 中SQL备份还原。SqlConnection connection = new SqlConnection(ConfigurationManager.string dbFileName = DateTime.try { SqlCommand command = new SqlCommand("use master;backup database xxdl to disk=@path;", connection);string path = Server.AddWithValue("@path", path);SqlConnect... 阅2 转自代业坤 公众公开 12-11-12 20:59 |
根据不同的查询条件穷和生成不同的列 阅2 转自实力决定... 公众公开 12-11-12 20:59 |
不错的 sql分页语句 阅4 转自实力决定... 公众公开 12-11-12 20:58 |
几个关于sql 查询时间语句。都是网上择下来的。供大家查考学习 阅200 转自实力决定... 公众公开 12-11-12 20:57 |
法1:select * from sc where 课程号=(select 课程号 from course where 课程名=''计算机导论'') and 学号in (select 学号 from student where 性别=''男'');法2:select sc.学号,student.姓名 as 学生姓名,student.性别 as 学生性别,sc.课程号,sc.成绩,course.课程名 from student inner join (sc inner join c... 阅2688 转63 评0 公众公开 12-10-31 13:34 |