简体   繁体   中英

Oracle SELECT UNIQUE * FROM TABLE

It is acceptable in Oracle databases the command

  "SELECT UNIQUE * FROM table"?

Or do I have to select the column name for that command to work?

您可以使用以下查询

select distinct * from table

Yes, this syntax is acceptable.
See this SQLFiddle example .

You can not use UNIQUE (or DISTINCT) if your table has LOB fields. See example: http://sqlfiddle.com/#!4/97d3e/1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM