摘要:
SqlParameterremoting 客户端调用服务端方法:DataSet ExecuteProc(string procedurename, SqlParameter[] a); 调用: DataSet ds = SqlUtil.ExecuteProc("存储过程名", parameters);//parameters 为SqlParameter[]类型的实例 报错:由于安全限制,无法访问类型 System.Runtime.Remoting.ObjRef。原因是SqlParameter不能序列化.需要添加一个类来转换.添加如下类:namespaceModal.SerS 阅读全文
摘要:
CREATE TABLE T_BI_CurrentAccountDetailed( OrderDateDATE, BranchFlagvarchar2(3), SortId varchar2(11), OrderNovarchar2(15), CustomerIdvarchar2(11), AmtOfDebitSideNUMBER(14,2) DEFAULT 0, AmtOfCreditSideN... 阅读全文
摘要:
create table t1(id int, feild int);insert into t1 values(1 , 1);insert into t1 values(1 , 2);insert into t1 values(1 , 3);insert into t1 values(1 , 4);insert into t1 values(2 , 1);insert into t1 value... 阅读全文
摘要:
BEGINdbms_scheduler.create_job(job_name=>'supplementdata',job_type=>'STORED_PROCEDURE',JOB_ACTION=>'pkg_JOB.sp_dw_supplementdata',START_DATE=>TRUNC(SYSTIMESTAMP+1),REPEAT_INTERVAL=>'FRE... 阅读全文
摘要:
select * from pan ; --有数据drop table pan; --删除表select * from pan ; --表或视图不存在flashback table pan to before drop;select * from pan ; --有数据(说明数据回来了)... 阅读全文
摘要:
审核意见页面,上面有一个文本框,一个确定按钮,一个取消按钮 如果用户点取消,审核意见页面关闭。 之前的通过这时时间应该应该执行. 说白了,之前的通过动作,应该不应该通后弹出窗口的取消按钮来取消。很纠结!!! 阅读全文
摘要:
declare TYPE t_cursor IS REF CURSOR; c_custids t_cursor; v_Date Date; v_branchid varchar2(3);BEGIN open c_custids for select * From (/*select distinct billingdate,branchid from tb_gos_sale_salestockoutsum where billingdate >to_date('2012-01-01','yyyy-mm-dd') union */ ... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleExample{ class 哥 { public virtual void draw() { Console.WriteLine("哥来做事,你们可以偷偷乐了"); } public void ff() { Console.WriteLine("哥的FF方法"); } } class 小弟 : 哥 { public overr... 阅读全文
摘要:
create table tb(时间 datetime , 金额 int) insert into tb values('2007-1-1 10:00:23' , 8 )insert into tb values('2007-1-1 10:01:24' , 4 )insert into tb values('2007-1-1 10:05:00' , 2 )insert into tb values('2007-1-1 10:06:12' , 3 )insert into tb values('2007-1-1 10:08: 阅读全文
摘要:
usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;namespaceConsoleApplication3{classProgram{staticvoidMain(string[]args){Aa=newA();Console.WriteLine(a.ToString());Console.WriteLine(a.ToString2());a=newB();Console.WriteLine(a.ToString());Console.WriteLine(a.ToString2());Co 阅读全文
摘要:
SELECT to_date(to_char(last_day(add_months(SYSDATE, -2))+1,'yyyy-mm-dd'),'yyyy-mm-dd'),to_date(to_char(last_day(add_months(SYSDATE, -1)),'yyyy-mm-dd'),'yyyy-mm-dd') FROM dual;SELECT to_date(to_char(last_day(add_months(SYSDATE, -3))+1,'yyyy-mm-dd'),'yyyy-mm 阅读全文
摘要:
select to_date(to_char(sysdate,'yyyy-mm-dd'),'yyyy-mm-dd') from dual;select trunc(sysdate,'dd') from dual;select '1' From dual where to_date(to_char(sysdate,'yyyy-mm-dd'),'yyyy-mm-dd')=trunc(sysdate,'... 阅读全文
摘要:
declarevarno varchar2(20);varprice varchar2(20);CURSOR mycur(vartype number) is select pk,opid from tb_gos_sale_salestockoutsum where pk = vartype;beginif mycur%isopen = false thenopen mycur(1166);end... 阅读全文