1.Sp_helptext2. FOR XML PATH('') covert one common to one row3. Syscomments search sp ,function text
分类:
数据库 时间:
2015-06-29 23:50:38
阅读次数:
165
declare cursor cur_emp is select t.* from scott.emp t;begin for r_emp in cur_emp loop dbms_output.put_line(r_emp.empno ...
分类:
数据库 时间:
2015-06-29 23:48:20
阅读次数:
179
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u...
分类:
数据库 时间:
2015-06-29 23:49:26
阅读次数:
256
declare v_sal number;begin select t.sal into v_sal from scott.emp t where rownum <= 1; dbms_output.put_line(v_sal);end;
分类:
数据库 时间:
2015-06-29 23:48:05
阅读次数:
239
--PACKAGECREATE OR REPLACE PACKAGE test_141215 is TYPE type_ref IS record( ENAME VARCHAR2(20), SAL NUMBER(10)); TYPE t_type_ref IS...
分类:
数据库 时间:
2015-06-29 23:45:37
阅读次数:
151
declare v_empno scott.emp.empno%type; v_sal scott.emp.sal%type; cursor cur_emp(v_empno number default 7369) is select t.empno, t.sal...
分类:
数据库 时间:
2015-06-29 23:46:37
阅读次数:
198
declare v_empno scott.emp.empno%type; v_sal scott.emp.sal%type; cursor cur_emp is select t.empno, t.sal from scott.emp t;begin op...
分类:
数据库 时间:
2015-06-29 23:47:12
阅读次数:
153
declare v_sal number := 6000;begin loop v_sal := v_sal + 1; dbms_output.put_line(v_sal); if v_sal = 8000 then ...
分类:
数据库 时间:
2015-06-29 23:45:15
阅读次数:
178
declare Type ref_cur_emp IS REF CURSOR RETURN scott.emp%RowType; cur_emp ref_cur_emp; rec_emp cur_emp%RowType; v_sql varchar2(100) := 'sel...
分类:
数据库 时间:
2015-06-29 23:43:51
阅读次数:
183
declare r_emp scott.emp%rowtype; cursor cur_emp is select t.* from scott.emp t;begin open cur_emp; loop fetch cur_emp ...
分类:
数据库 时间:
2015-06-29 23:42:44
阅读次数:
174
declare v_sal number(5) := 6000;begin --if you could not see the output in console, you should set output on first use the command in command li...
分类:
数据库 时间:
2015-06-29 23:38:32
阅读次数:
143
declare r_emp scott.emp%rowtype; cursor cur_emp is select t.* from scott.emp t;begin open cur_emp; if cur_emp%isopen then db...
分类:
数据库 时间:
2015-06-29 23:36:21
阅读次数:
172
CREATE OR REPLACE PACKAGE temp_package_demo is v_demo NUMBER(3); PROCEDURE p_demo_1(userid NUMBER DEFAULT v_demo, SAL number); FUNCTION f_dem...
分类:
数据库 时间:
2015-06-29 23:35:20
阅读次数:
166
log4j可以支持将log输出到文件,数据库,甚至远程服务器,本教程以mysql数据库为例来讲解:1.数据库设计数据库表表4-1日志表(log)字段名字段解释数据类型数据长度是否为空是否为主键是否为外键id日志编号bigint20否是否create_time创建时间datetime否否否logs日志...
分类:
数据库 时间:
2015-06-29 23:33:21
阅读次数:
170
CREATE OR REPLACE PACKAGE BODY temp_package_demo is FUNCTION f_demo(userid NUMBER) RETURN BOOLEAN IS v_temp varchar2(1); BEGIN SEL...
分类:
数据库 时间:
2015-06-29 23:32:34
阅读次数:
152
最近做了一个关于数据压缩的项目,要把整个SQL SERVER服务器下所有的表对象要改成页压缩。于是趁此机会了解了一下SQL SERVER下压缩技术。这篇文章几乎就是完全指导手册了https://technet.microsoft.com/en-us/library/dd894051(v=sql.10...
分类:
数据库 时间:
2015-06-29 23:30:00
阅读次数:
221