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

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -