sql - Database query UNIQUE constraint -


i new pl sql. fetch data on basis of unique attribute. may use unique keyword in clause? if yes exact syntax.

thanx in advance.

syntax using unique:

select unique <column_name_list> <table_name> <conditions>; 

however, consider using keyword distinct selecting unique values unique not standard across sql databases.

select distinct <column_name_list> <table_name> <conditions>; 

see this post explanation.


Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -