-- 创建一个用户并分配表空间和分配权限 -- 以sysdba登录 oracle@sha-col-oracle-2:~> sqlplus / as sysdba SQL*Plus: Release 12.1.0.2.0 Production on Mon Mar 7 18:48:59 2016 Copyright (c) 1982, 2014, Oracle. All rights reserved. Connected to: Oracle Database 12c Enterprise Ed…
create or replace function Fuc_Get_AuthorName(RecID_In in varchar2, AdmID_In in varchar2) return varchar2 is Result varchar2(8000); names varchar2(4000); Cursor Cur_Get_AuthorNameS Is SELECT PEOPLENAME From TB_NEWS_CONTRI_AUTHOR Where REC_ID=RecID_In…
先展示一个错误写法 public static String printGg_bysly0List() {// 外网 TransManager tm = new TransManager(); try { // 获取要更改的人员 String sql = "select t.yrk057,t.aac002,t.yr0560 from gg_bysly0 t where t.yr0560 like '2018%'"; List<Gg_bysly0> sybcbnryList…
http://www.itpub.net/forum.php?mod=viewthread&tid=1761963 以前在数据库维护中,基本都是碰到表被锁的情况,然后就是查找被锁的表相关的信息,通过v$session视图查找到相关的sid和serial#,通过 alter system kill session ‘sid,serial#’ kill掉相关的进程即可.但是今天碰到开发包更新过程中,连接中断,导致开发包一直被锁定的状态,无法操作. 由于以前没有遇到包被锁的情况,所以也没太注意这方面的…
集合函数; declare type list_nested ) not null; v_all list_nested := list_nested('changan','hubei','shanghai','beijing','Android','Java-Android'); BEGIN v_all.); for x in v_all.first .. v_all.last loop dbms_output.put_line(v_all(x)); end loop; --dbms_outp…
max 最大数 自动加 1 create or replace function fun_getmaxlot( vend in varchar2 , domain IN VARCHAR2, tag in varchar2 ) RETURN VARCHAR2 AS MAXVAL VARCHAR2(40); NEWIQC VARCHAR2(40); TT VARCHAR2(12); BEGIN BEGIN select max(xsld_lot) into MAXVAL from xsld_det…
max 最大数 自动加 1 create or replace function fun_getmaxlot( vend in varchar2 , domain IN VARCHAR2, tag in varchar2 ) RETURN VARCHAR2 AS MAXVAL VARCHAR2(40); NEWIQC VARCHAR2(40); TT VARCHAR2(12); BEGIN BEGIN select max(xsld_lot) into MAXVAL from xsld_det…