摘要:
select Max(deal_id ) from wf_stepdeal tMax(step_index)+1 阅读全文
摘要:
--oracle concat 与--CONCAT(字串1, 字串2, 字串3, ...): 将字串1、字串2、字串3,等字串连在一起。请注意,Oracle的CONCAT()只允许两个参数;换言之,一次只能将两个字串串连起来。不过,在Oracle中,我们可以用'||'来一次串连多个字串。 SELECT CONCAT(region_name,store_name) FROM Geography WHERE store_name = 'Boston'; --'EastBoston' SELECT region_name || ' ' 阅读全文
摘要:
function one(i_bill_id in number,i_bill_name in varchar2,o_err_msg out varchar) return Integer is result Integer;m_count Integer;begin begin ..... commit; Result:=0; Exception when others then Result:=-1; o_err_msg:='错误'; Rollback; end;end; 阅读全文
摘要:
insert into pm_per_res_page_ele (RES_ID,ELE_TYPE_CODE,ELE_CODE,REMARKS) select per_res_page_ele_id.nextval as RES_ID, 'Menu.Left.Tree' as ELE_TYPE_CODE, menu.menu_id as ELE_CODE, menu.menu_name as REMARKSfrom SYS_MENU menu 阅读全文
摘要:
/// ---动态函数调用 m_sentence:='begin :1:='||m_exec_func||'('||i_bill_id||'); end;';if Result=0 then Select exec_func Into m_exec_func From wf_stepdeal Where deal_id=i_deal_id; If m_exec_func Is Not Null Then m_sentence:='begin :1:='||m_exec_func||'('||i_bill_id||& 阅读全文
摘要:
select max(substr(SYS_CONNECT_BY_PATH(COLUMN_NAME, ','), 2)) into m_col from (select decode(UPPER(COLUMN_NAME),'ID','AAID',COLUMN_NAME) as COLUMN_NAME,column_id from dba_tab_columns where table_name = UPPER(m_tabname)) start with column_id = 1 connect by column_id = rownum; - 阅读全文
摘要:
create or replace package person_package is--/********************************对公客户转让**********************************/function person_f_updatecode(i_client_id in varchar2, --客户id字符串 o_message out varchar2) -- -1:返回错误信息 return integer;end person_package; 阅读全文
摘要:
function person_f_updatecode(i_client_id in varchar2, --客户id字符串 o_message out varchar2) -- -1:返回错误信息return integer is result integer;begin begin result:=0; exception when others then result:=-1; o_message:='执行错误'; end; return result;end person_f_updatecode;end person_package; 阅读全文
摘要:
一、select 的时候用to_char: to_char(touch_time, 'yyyy-MM-dd hh24:mi:ss') < '2010-05-10 11:08:45' 二、insert 的时候用to_date: to_date(Now,'yyyy-MM-dd hh24:mi:ss') 阅读全文
摘要:
oracle10g= (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.110)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = orcl) ) ) 进ORACLE服务端文件夹NetWork/admin/tnsnames.ora粘贴上面代码进oracle客户端文件夹NetWork/admin/tnsnames.ora黏贴上面代码进plsql输入用户密码如果还不行就进plsql 在菜单tool的Preferences里面选择OracleHom 阅读全文
摘要:
这几天有点空了抓紧整理东西放上来,主要是平时的一些工作日志2年的工作成果var strs=new Array();strs=iid.split(",");count=strs.length(strs);alert("你选中"+count+"条工单分配"); 阅读全文