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

twig - Using Twigbridge in a Laravel 5.1 Package -

Kivy: Swiping (Carousel & ScreenManager) -

jdbc - Not able to establish database connection in eclipse -