摘要: oracle存储过程、声明变量、for循环1、创建存储过程 create or replace procedure test(var_name_1 in type,var_name_2 out type) as--声明变量(变量名 变量类型)begin--存储过程的执行体end test;打印出输入的时间信息E.g:create or replace procedure test(workDate in Date) isbegindbms_output.putline('The input date is:'||to_date(workDate,&a 阅读全文
posted @ 2010-12-27 22:50 emmy 阅读(14358) 评论(0) 推荐(0) 编辑
摘要: for循环加入测试数据:declare i number :=15;begin for num in 1..i loop insert into addinfo("oid","uid",ONAME,CREATEDATE) values(num,num,'FF'||num,sysdate()); end loop; commit;end; 阅读全文
posted @ 2010-12-27 22:42 emmy 阅读(442) 评论(0) 推荐(0) 编辑
摘要: oracle job的相关设置next date: 2010-12-28 18:05:00 interval: to_date(to_char(sysdate,'yyyy-mm-dd')||' 18:05:00','yyyy-mm-dd hh24:mi:ss')+1--**************************************************************************************Oracle JOB的建立,定时执行任务 begin sys.dbms_job.submit(job => 阅读全文
posted @ 2010-12-27 22:14 emmy 阅读(21284) 评论(0) 推荐(0) 编辑
摘要: 我的ssis和ssas报错记录 我的数据库装的是SQL Server 2005标准版本的,在这个版本里不具有数据透视功能, 所以解决这个的办法,只有把安装更高级的版本了,有 开发版和企业版,企业版要求只能在WinServer上安装,而我的操作系统是XP的,所以只有去安装 开发版了. 找了些关于版本选择的内容,SQL2005分五个版本,如下所列, 1.Enterprise(企业版), win server 2.Development(开发版), xp 3.Standard,(标准版) 4.Express.(简易版) 5.Workgroup,(工作群版) Development,Enterpri. 阅读全文
posted @ 2010-12-27 15:41 emmy 阅读(1783) 评论(0) 推荐(2) 编辑
摘要: PL/SQL的功能设置:Tools -> perferences -> UserInterface -> -> key Configuration File/new/sql window Ctrl+n File/pl/sqlBeautiful Ctrl+d File/open/sql script Ctrl+w -> Code Assistant Mininute charts: 1 输入1个字符就会出现提示。Tools -> Window List 是看当前pl/sql工具打开了哪些sql列表。如下设置 以后都不用每次去勾选 Window List 了。默 阅读全文
posted @ 2010-12-27 15:17 emmy 阅读(2732) 评论(0) 推荐(1) 编辑
摘要: 1.sql server 的job执行 ssis的包的时候,报错:日期,源,严重性,步骤 ID,服务器,作业名称,步骤名称,通知,消息,持续时间,SQL 严重性,SQL 消息 ID,已通过电子邮件通知的操作员,已通过网络发送通知的操作员,已通过寻呼通知的操作员,重试次数12/27/2010 13:04:00,test2712,错误,0,EMMY,test2712,(作业结果),,该作业失败。 计划 10 (testa) 调用了该作业。最后运行的是步骤 1 (teate)。.,00:00:03,0,0,,,,012/27/2010 13:04:00,test2712,错误,1,EMMY,test 阅读全文
posted @ 2010-12-27 13:31 emmy 阅读(7433) 评论(2) 推荐(2) 编辑