ChinaUnix.net
相关文章推荐:

oracle 取分组函数第一条

在INFORMIX数据库中,查询表中的记录语句如下: select first 1 * from 表名 在oracle数据库中,查询表中的记录语句如下: select * from 表名 where rownum = 1; 请问下:有没有SQL语句,查询表中记录,在两个数据库系统中都可以用,呵呵!

by IT农民工 - Informix - 2008-08-16 23:08:11 阅读(3086) 回复(2)

相关讨论

在INFORMIX数据库中,查询表中的记录语句如下: select first 1 * from 表名 在oracle数据库中,查询表中的记录语句如下: select * from 表名 where rownum = 1; 请问下:有没有SQL语句,查询表中记录,在两个数据库系统中都可以用,呵呵!

by IT农民工 - Oracle - 2008-08-17 13:21:28 阅读(2664) 回复(1)
by juniper2003 - Oracle - 2003-10-28 13:12:06 阅读(12907) 回复(8)

    在工作中,我们经常会使用到按时间或指定字段进行排序,并提/末记录的操作,而oracle中的分析函数让我们能够方便快捷地实现这个功能,下面实例的详细情况:


1、建立测试数据表

  1. create table sail_test

by saillee - Oracle - 2011-12-22 08:54:05 阅读(1168) 回复(0)
by mosquitoxh - Oracle - 2003-07-25 13:32:42 阅读(3433) 回复(2)

本帖最后由 wbd_96321 于 2014-06-27 16:53 编辑 各位好,有个统计型的语句,在PLSQL中执行特别慢,求优化 select performer, performer_name, sum(dbcount)+sum(ybcount) as allcount, sum(dbtime)+sum(ybtime) as allTime from( select performer, performer_name, sum(CASE WHEN state = '7' or state = '9' THEN 1 ELSE 0 END) as dbcount, sum(CASE WHEN st...

by wbd_96321 - Oracle - 2014-07-08 17:03:48 阅读(3739) 回复(6)

select e.name, d.name, c.name from cat c, dpt d, emp e, dual x where nvl('x', x.dummy) = nvl('x', e.rowid()) and nvl('x', x.dummy) = nvl('x', d.rowid()) and nvl('x', x.dummy) = nvl('x', c.rowid()) and e.emp_no() = 1234 and d.dept_no() = 10 and c.cat_type() = 'rd'; 我不明白 dummy 是什么? 为什么 select dummy from dual; 会出个 X 的值 ?

by mlvex1234 - Oracle - 2009-12-24 11:44:57 阅读(1716) 回复(3)

各位大哥大姐,兄弟我几乎要疯了。兄弟我的电脑不知为什么,在linux系统上安装oracle10g 图形界面死活就是出不来。看上去,图形界面就好像细线。 后来改用silent以静默方式安装,结果oracle那个数据库软件到是装好了,可是到了netca又出问题了 [oracle@mylinux ~]$ $oracle_HOME/bin/netca /silent /responseFile ~oracle/netca.rsp Exception in thread "main" java.lang.UnsatisfiedLinkError: /u01/app/oracle/product/10....

by chrabbit - Oracle - 2014-03-29 12:54:43 阅读(4978) 回复(8)

另外: 在做rac 或者sc vcs之类双机负载应用时 NTP是否都需要配置? 那位大虾有相关的总结吗? [ 本帖最后由 westlife521 于 2008-2-19 11:22 编辑 ]

by westlife521 - Solaris - 2008-02-19 16:38:41 阅读(1732) 回复(4)

请问oracle有没有上载文件或者输出文件的语句,谢谢 这是个很古老的注入了,就是: ' or '1'=1' :em11: 不知道针对这个组合在这中间加什么比较好...知道的请回贴,如果成功,收获不小,嘿嘿.... (本人对JSP不精,愿有人加偶Q Q 1 2 4 3 2 1 6 9 7,共同商量下)

by hitty - Oracle - 2005-06-02 17:32:29 阅读(1024) 回复(0)

如何在oracle数据库中随机读记录啊~~~~~~~~~~~ 望大侠指点二~~~~~~~~~~~~~~~~~ 在线等~~~~~~~

by because522 - Oracle - 2004-10-22 23:24:01 阅读(1750) 回复(3)