codescracker


sql

SQL Constraints



« Previous Tutorial Next Tutorial »


SQL constraints are basically used to specify the rules for the data in a table. Here is the general form to define constraints on columns:

CREATE TABLE table_name
(
column_name1 data_type(size) constraint_name,
column_name2 data_type(size) constraint_name,
column_name3 data_type(size) constraint_name,
....
);

SQL Constraints List

Here are the list of constraints available in SQL:


« Previous Tutorial Next Tutorial »



Tools
Calculator

Quick Links
Signup - Login - Give Online Test