Search
 
SCRIPT & CODE EXAMPLE
 

SQL

oracle unique constraint

ALTER TABLE table_name ADD CONSTRAINT cst_name UNIQUE (col_name); 
ALTER TABLE table_name ADD CONSTRAINT cst_name UNIQUE (col1, col2); -- Multiple
ALTER TABLE table_name ADD col_name NUMBER UNIQUE;				  	-- New field
Comment

oracle sql unique

SELECT DISTINCT column_1
FROM table;
Code language: SQL (Structured Query Language) (sql)
Comment

oracle sql unique

SELECT
    DISTINCT product_id,
    quantity
FROM
    ORDER_ITEMS
ORDER BY
    product_id;
Code language: SQL (Structured Query Language) (sql)
Comment

PREVIOUS NEXT
Code Example
Sql :: oracle drop default value 
Sql :: insert many to many sql 
Sql :: on sql table data exists 
Sql :: mysql keyword search 
Sql :: sql is null 
Sql :: how to check user grant in mysql 
Sql :: copy a table mysql 
Sql :: run psql postgres docker 
Sql :: what is relational database 
Sql :: mariadb create view 
Sql :: mysql 5.6 hierarchical recursive query 
Sql :: mysql group by 
Sql :: mysql on kubernetes 
Sql :: change database postgres 
Sql :: Create table with JSON column SQL Server 
Sql :: how to put is null in where in clause 
Sql :: postgres copy command 
Sql :: select only unique values from and to current table 
Sql :: postgres stored procedure 
Sql :: how to find first 3 highest salary in sql 
Sql :: back up stored procedures mysql 
Sql :: Rows, INSERT INTO, Returning 
Sql :: intersect sql 
Sql :: postgres insert into table 
Sql :: memberikan password root mysql 
Sql :: split string and copy last element postgresql 
Sql :: rename temp table column name in sql server 
Sql :: mysql delete duplicate rows except one 
Sql :: number(10 2) in sql means 
Sql :: sql create database statement 
ADD CONTENT
Topic
Content
Source link
Name
2+5 =