oracle中number distinct什么字段
答案:2 悬赏:80
解决时间 2021-02-19 18:36
- 提问者网友:离殇似水流年飞逝
- 2021-02-19 15:17
oracle中number distinct什么字段
最佳答案
- 二级知识专家网友:魅世女王
- 2021-02-19 15:23
那就用distinct函数,只取出重复的唯一记录就可以了。
sql:select distinct(* ) from tablename ;
sql:select distinct(* ) from tablename ;
全部回答
- 1楼网友:一身浪痞味
- 2021-02-19 16:29
方法一、order_no 设置为索引
create index index_001 on tb(order_no)。
方法二、如果该表有索引,则更改sql语句,将order_no更改为索引字段
select count(distinct(索引字段))
from tb
where
nyu2_cd = '1306'
and order_state = '1'
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯