Search
 
SCRIPT & CODE EXAMPLE
 

SQL

how to add unique key constraint in mysql

-- Add a Unique constraint and deifine the constraint name
ALTER TABLE TABLENAME
ADD	CONSTRAINT UQ_tblPerson_Email UNIQUE(COLUMN_NAME)
Comment

PREVIOUS NEXT
Code Example
Sql :: String concatenation in PostgreSQL 
Sql :: set sequence value oracle 
Sql :: sql decrement value by 1 if not null or zero 
Sql :: mysql date diff in seconds 
Sql :: describe table mysql 
Sql :: node and mysql like 
Sql :: having count greater than 1 mysql 
Sql :: mysql calculate age 
Sql :: Postgres upgrade to superuser 
Sql :: check mysql timezone 
Sql :: mysql add column default value 
Sql :: dao function to check if database contains value 
Sql :: create email address from first and last name in sql 
Sql :: pop sql insert value into 
Sql :: oracle export trigger ddl 
Sql :: copy sql table 
Sql :: create table sql server auto increment primary key 
Sql :: sql for date greater than 
Sql :: mysql select from outside 
Sql :: tsql rename table 
Sql :: uninstall mysql server ubuntu 
Sql :: return sql query laravel 
Sql :: creating a view sql 
Sql :: delete table sql 
Sql :: psql: error: connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user 
Sql :: get first 2 letter in sql 
Sql :: alter table in mysql 
Sql :: how to select all attributes from a row if there is a certain string in it MySQL 
Sql :: HOW TO FIND MEDIAN IN SQL FOR BOTH IDD AND EVEN 
Sql :: sql server cannot create database diagram 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =