2012年10月31日
摘要: 是想功能:在数据库中删除一条数据,然后在把删除的这条数据重新插入到另一个表中,同时要在表中插入删除人和删除时间。用sql语句执行declarev_fwzco t_fwzc_o%rowtype;begin select fwzc_id,zcbm into v_fwzco.fwzc_id,v_fwzco.zcbm from T_FWZC where fwzc_id='56038d65-2a41-4cf7-b136-f2cec915960f'; v_fwzco.BDR :='test'; v_fwzco.BDSJ :='test'; v_fwzco.f 阅读全文
posted @ 2012-10-31 13:08 小东北 阅读(1919) 评论(0) 推荐(0) 编辑
摘要: create or replace function GET_COUNT_ZS(deptcode in varchar2, tablename in varchar2,bs in varchar2)return varchar2is num varchar2(1000);c number;beginif(bs=0) then num:='select count(*) from '||tablename||' where deptcode like '''||deptcode||'%''';end if;if(bs 阅读全文
posted @ 2012-10-31 11:23 小东北 阅读(1972) 评论(0) 推荐(0) 编辑