-
2008-09-22 13:47:34 / Oracle开发
我的数据库里的表a有一个字段ip,格式为:116.242.182.253-255我想把这些记录重新整理整理,把他们都添加到新表ip_ok中,记录变为116.242.182.253116.242.182.254116.242.182.255这个存贮过程怎么写呢?请教一下大家
查看(416)
评论(13)
-
2008-09-05 11:12:21 / Oracle开发
比如:我在formula表relation中保存z01=Z02+Z03Z03=Z04+Z05...然后对product表的Z01,Z02,Z03,Z04,Z05列作审核,是否符合只要select eval(formula.relation) from product,formula
查看(157)
评论(8)
-
2008-09-02 13:58:53 / windows server
ITPUB 微软技术社区全新上线,已经聘请多位技术专家担任版主,回答网友技术问题;请喜欢和从事微软技术开发的网友在此安营扎寨!(另:还有少量版主职位,敬请大家报名)链接:http://ms.itpub.net/index.php
查看(4692)
评论(46)
-
2008-09-02 11:57:30 / Oracle开发
请教:如下,我想将列别名为SYSDATE,怎样能实现?select part_no,qty_per_assembly,max(decode(month,to_char(add_months(sysdate,0),'yyyy-mm'),total_sheet,0)) SYSDATE,........:rose:
查看(1076)
评论(39)
-
2008-09-01 16:41:15 / Oracle开发
create or replace proceduretest1isbeginselect * from testtable ;end;
查看(263)
评论(12)
-
2008-09-01 15:35:06 / Oracle开发
select distinct substr(file_name,1,5) from dba_data_files --order by distinct substr(file_name,1,5)/g026/g014/g002/g034返回的不满足我的要求我想返回的是这样的/g002/g014/g026/g034
查看(165)
评论(8)
-
2008-09-01 15:19:19 / Oracle开发
现在有3张表,第一张是test1 字段iddata,第二张是test2字段id , seperate , resultofseperate第三张test3 字段id result1result2输入些数据比如说iddataidseperateresultofseperate1 10010.70.3我想运行的结果是把data里面的数据按照0.7和0.3分成,也就是100*0.7100*0.3 然后分别装到test3的result1result2里面请问怎么实现指望大家指点下
查看(227)
评论(11)
-
2008-09-01 09:57:54 / Oracle开发
有一个表test,select name,sum(num) from test group by namenamenuma1想实现:虽然这个表里现在没有b和c,但是我还是想把b和c列出来,namenuma1b0c0create table test(name varchar2(2),num number(2));insert into test('a', 1);commit;
查看(306)
评论(15)
-
2008-08-31 22:57:18 / Oracle开发
PL/SQL编程武器库 临时表环境准备建立两种临时表 ,本例使用scott用户下的emp表中的数据作为临时表数据--建立两张临时表--建立事务级临时表createglobaltemporary table emp_delete on commit delete rowsas select *from empwhere 1=2--建立会话级临时表createglobaltemporary table emp_preserve on commit preserve rowsas select *from empwhere 1=2下面说一下两种临时表的异同相同点:两种表都不能永久的保存记录。他们都是用临时表空间。不同点:事务级临时表临时表在提交
查看(567)
评论(19)
-
2008-08-25 12:29:22 / Oracle开发
一起分享
查看(387)
评论(10)