在SQL Server 不只是procedure 可以用execute 来执行 function 也是可以的例子: create function ufn_A( @i as int) returns int begin return @i+1; end go declare @ii ...
分类:
数据库 时间:
2014-10-31 08:43:03
阅读次数:
173
select * from bankinsert into bank values(10000)insert into bank values(20000)--打开一个事务begin tran--定义临时变量declare @num int = 0;update bank set balance=b...
分类:
数据库 时间:
2014-10-30 22:24:29
阅读次数:
309
DECLARE
l_rec_profile_t hz_customer_profile_v2pub.customer_profile_rec_type;
l_rec_profile hz_customer_profile_v2pub.cust_profile_amt_rec_type;
l_profile_amt_id NUMBER;
l_profile_id...
分类:
其他好文 时间:
2014-10-30 19:17:23
阅读次数:
259
T-Sql中的变量都是@符号开头的以一个@符号开头,叫做“用户声明的变量”以两个@@开头的叫做"全局变量","系统变量",是由系统来维护的。无需我们维护--自己定义一个变量declare @userName nvarchar(50)--为变量赋值set @userName=N'黄林' 推荐Print...
分类:
数据库 时间:
2014-10-30 16:58:17
阅读次数:
233
??
附件下载功能
使用 fnd_lobs 表结合 fnd_gfm 包下载文件,可以下载已经存在fnd_lobs表里的文件,也可以手动写些内容进fnd_lobs表,然后在浏览器里显示:
--1.下载fnd_lobs表里已经存在的文件:
DECLARE
v_file_id NUMBER;
url VARCHAR2(500 );
BEGIN
--Get ...
分类:
数据库 时间:
2014-10-30 13:36:52
阅读次数:
278
-- 声明游标;CURSOR cursor_name IS select_statement--For 循环游标--(1)定义游标--(2)定义游标变量--(3)使用for循环来使用这个游标declare --类型定义 cursor c_job is ...
分类:
数据库 时间:
2014-10-30 09:23:12
阅读次数:
328
create or replace function refresh_product_usage() returns void as $$declare rec record; sub_rec record; init_pro_id integer; parent_product_id integ....
分类:
数据库 时间:
2014-10-30 09:20:25
阅读次数:
275
#manshellbuiltinsBASH_BUILTINS(1)BASH_BUILTINS(1)NAMEbash,:,.,[,alias,bg,bind,break,builtin,cd,command,comp-gen,complete,continue,declare,dirs,disown,echo,enable,eval,exec,exit,export,fc,fg,getopts,hash,help,history,jobs,kill,let,local,logout,popd,printf,pu..
分类:
系统相关 时间:
2014-10-30 01:55:08
阅读次数:
222
首先我们要用到的API函数有SetWindowLong,GetWindowLong,SetLayeredWindowAttributes。SetWindowLong函数原型:Private Declare Function SetWindowLong Lib "user32" _Alias "S.....
declare STERMINAL VARCHAR2(10); SPROCESS NUMBER;begin sj_transfera_digi_getmapping(60007631,103758,'DYH0100067830311',STERMINAL,SPROCESS); dbms_o...
分类:
数据库 时间:
2014-10-29 12:53:58
阅读次数:
269