上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: https://www.cnblogs.com/Rawls/p/11027413.html /* 第一步:创建临时表结构 */ CREATE TABLE #Student --创建临时表 ( StuName nvarchar(20), --学生名称 StuSubject nvarchar(20),- 阅读全文
posted @ 2020-08-13 11:07 博客燕 阅读(1084) 评论(0) 推荐(0)
摘要: 1、使用for xml path('') 和stuff Select * Into #temp From ( select 'A' id,'aa' name union all select 'A' id,'bb' name union all select 'A' id,'cc' name uni 阅读全文
posted @ 2020-08-13 10:45 博客燕 阅读(515) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/d333d000e5b2 https://www.cnblogs.com/bluedy1229/p/11649089.html 阅读全文
posted @ 2020-07-16 10:06 博客燕 阅读(604) 评论(0) 推荐(0)
摘要: --1.声明游标提取数据所要存放的变量 declare @OrderId int ,@userId varchar(15) 2.声明游标 declare cur_name cursor scroll for select OrderId ,userId from bigorder where ord 阅读全文
posted @ 2020-07-15 13:25 博客燕 阅读(179) 评论(0) 推荐(0)
摘要: sp_executesql的运用 书写语法要点: exec sp_executesql @sql,N’参数1 类型1,参数2 类型2,参数3 类型3 OUTPUT’,参数1,参数2,参数3 OUTPUT; 注意参数前后顺序必须对应好 如下图不同颜色的标记 简易测试代码: declare @FSQL 阅读全文
posted @ 2020-07-15 11:39 博客燕 阅读(1553) 评论(0) 推荐(0)
摘要: LONG ROW,ROWCOUNT,istring ls_column,ls_jglx if dw_detail.accepttext( ) = -1 then return gnv_app.of_fillcolumndown(dw_detail) ROW=this.dw_detail.getrow 阅读全文
posted @ 2020-06-16 09:39 博客燕 阅读(319) 评论(0) 推荐(0)
摘要: create trigger updateDeleteTime on user for update as begin update user set UpdateTime=(getdate()) from user inner join inserted on user.UID=Inserted. 阅读全文
posted @ 2020-06-02 11:39 博客燕 阅读(3009) 评论(0) 推荐(1)
摘要: DECLARE my_cursor CURSOR FOR select * from dbo.fun_kpi_mould_mjzfjsl_detail(:as_year,:as_parameter) using sqlzk;OPEN my_cursor ; fetch my_cursor into 阅读全文
posted @ 2020-05-22 14:09 博客燕 阅读(1442) 评论(0) 推荐(0)
摘要: DECLARE my_cursor CURSOR FOR execute P_L_WORKUNIT_SALARY_GSGS(:as_year,'1') ; OPEN my_cursor ; fetch my_cursor into :ls_items,:lc_m1,:lc_m2,:lc_m3,:lc 阅读全文
posted @ 2020-05-22 14:07 博客燕 阅读(776) 评论(0) 推荐(0)
摘要: --1.创建一个package,包中定义两个方法,一个set值的方法,一个get值的方法create or replace package VIEW_GET_PRODUCT_YGS is --set值方法function set_writeday(writeday varchar2) return 阅读全文
posted @ 2020-05-21 17:23 博客燕 阅读(314) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页