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:

SQL Online Test


« Previous Tutorial Next Tutorial »



© Copyright 2021. All Rights Reserved.

CodesCracker