Home > database > Query all the value of a field, recurring to keep only one. How do you write SQL statement
Query all the value of a field, recurring to keep only one. How do you write SQL statement
Time:09-17
Query all the value of a field, recurring to keep only one, how to write SQL statements The results of the query, for example, to query field department contains the sales department, technical department, ministry of personnel, and in the sales department, so how to write SQL statements, all departments are displayed, but do not repeat again?
CodePudding user response:
The oracle database?
Add a distinct
Select distinct column 1, column 2, column 3 from the table where...