摘要: 定义:一种方法 1.创建函数,求该银行的金额总和--(没有参数,返回标量值) go create function getsumcardbalance() return money as begin declare @sumcardbalance money set @sumcardbalance 阅读全文
posted @ 2023-08-19 13:48 KevinSteven 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 游标的作用便于提取单一数据(单个字段值,或者单行全部字段值) 1.创建一个单字段游标stfid go declare cs_stfid scroll cursor for select stfid from staff --scroll 定义滚动游标 2.打开游标 open cs_stfid 3.提 阅读全文
posted @ 2023-08-19 09:17 KevinSteven 阅读(23) 评论(0) 推荐(0) 编辑