12 2007 档案
摘要:转账事务与存储过程一、实验目的:1.掌握事务操作2.掌握存储过程的应用 二、实验内容:1、先建立数据环境(帐户表)create table 帐户表(帐户编号 char(4) primary key,帐户名 char(4),金额 int)goinsert 帐户表 val...
阅读全文
摘要:使用CASE结构进行查询结果分类例题1:select zkzh 准考证号,xm 姓名,总成绩= case when zcj=0 then '不及格' when zcj=1 then '及格' when zcj=2 then '良好' ...
阅读全文
摘要:SQL Server 2000 事务操作1.事务操作实例一--事务开始begin transaction insert student(sno,sname,ssex,sage,sdept) values('200200005','王五','男',20...
阅读全文
摘要:实验内容:掌握SQL Server 2000的预编译程序NSQLPREP.EXE的使用(以课本例题1进行调试);实验步骤:一、数据库环境配置1、创建xuesheng数据库,建立student表等;2、关闭sql server 2000服务管理器;3、将devtool...
阅读全文
摘要:1.存储过程use smsif exists(select name from sysobjects where name = 'djkscx' and type='p')drop procedure djkscxgo--建立一个带有参数存储过...
阅读全文
摘要:--use sms--goto--定义游标/*declare 游标名称 cursor [local | clobal] [forward_only|scroll] [static|keyset|dynamic|fast_forward] [read_only|scro...
阅读全文

浙公网安备 33010602011771号