你可以自己试一下: sql>set timing on 第二个问题有点难度。建议如果该公司不能上网,则炒之!:)
:) 要学的太多了!我越来越喜欢CSDN了。我准备泡在这里面多学点东西!
也可以用:select count(*) from vehicle group by vid 1、我试的结果好像差不多 2、同意楼上意见!哈哈
作为开发人员,来这里可能学习的比较多吧 不过这里关于oracle的讨论实在太肤浅了:)
作为开发人员,来这里可能学习的比较多吧 不过这里关于oracle的讨论实在太肤浅了:)
楼上的,select count(*) from vehicle group by vid出来的结果可不对啊,不要误导别人这样还差不多select count(count(*)) from vehicle group by vid;1、应该是distinct一个字段快一些吧,因为这样就检查一个字段 distinct *是要检查全部字段 2、这个问题好像大家的意见比较统一
楼上的,select count(*) from vehicle group by vid出来的结果可不对啊,不要误导别人这样还差不多select count(count(*)) from vehicle group by vid;1、应该是distinct一个字段快一些吧,因为这样就检查一个字段 distinct *是要检查全部字段 2、这个问题好像大家的意见比较统一
楼上的,select count(*) from vehicle group by vid出来的结果可不对啊,不要误导别人这样还差不多select count(count(*)) from vehicle group by vid;1、应该是distinct一个字段快一些吧,因为这样就检查一个字段 distinct *是要检查全部字段 2、这个问题好像大家的意见比较统一
Learn Oracle , you need to be speak oracle , think oracle and live oracle . Oracle is a sea , SO you can not master every detail . Maybe you can start from PL/SQL -> Advanced PL/SQL -> Basicall DBA ->Basical Backup and Recover ..... You learn more and you will find more interesting things in oracle . By the ways , normally people don't use select count(distinct *) .. Unless there are some records which are exactly same .Any PLSQL is written based on the business logical . If you want to find VID 's distinct number , Then you must use count(distinct VID)
还有一个问题:
1、distinct 后面是一个字段和*哪个快呢?
2、这样的技术问题我如果上不了网能到哪里去找答案呢?:)
还有一个问题:
1、distinct 后面是一个字段和*哪个快呢?
2、这样的技术问题我如果上不了网能到哪里去找答案呢?:)
sql>set timing on
第二个问题有点难度。建议如果该公司不能上网,则炒之!:)
要学的太多了!我越来越喜欢CSDN了。我准备泡在这里面多学点东西!
1、我试的结果好像差不多
2、同意楼上意见!哈哈
不过这里关于oracle的讨论实在太肤浅了:)
不过这里关于oracle的讨论实在太肤浅了:)
distinct *是要检查全部字段
2、这个问题好像大家的意见比较统一
distinct *是要检查全部字段
2、这个问题好像大家的意见比较统一
distinct *是要检查全部字段
2、这个问题好像大家的意见比较统一
如果我还有一个问题不知道大家介意不介意啊:
怎么样才能把计算机基础打好呢?如果想让自己成为一个java,ORACLE,的高手。应该从哪里学起怎么学才是最好的办法呢?
我会再继续给更高的分的!
http://asktom.oracle.com
http://metalink.oracle.com
www.itpub.net
但要成为高手必须掌握EJB等
oracle . Oracle is a sea , SO you can not master every detail . Maybe you can start from PL/SQL -> Advanced PL/SQL -> Basicall DBA ->Basical Backup and Recover ..... You learn more and you will find more interesting things in oracle . By the ways , normally people don't use select count(distinct *) ..
Unless there are some records which are exactly same .Any PLSQL is written based on the business logical . If you want to find VID 's distinct number , Then you must use count(distinct VID)