jialiguo 发表于 2018-9-13 11:38:20

oracle 语句

  1、创建索引
  CREATE INDEX INDEX_NAME ON TABLENAME (COL_NAME) NOLOGGING PARALLEL 4;
  2、去重复,然后取一条数据
select * from table where rowid=any(select max(rowid) from table groupby cola)   select * from table where rowid in (select max(rowid) from table groupby cola)


页: [1]
查看完整版本: oracle 语句