Answer Posted / arihant
example of check constraint
CREATE TABLE Customer_Details(
Cust_ID Number(5) CONSTRAINT Nnull1 NOT NULL
CONSTRAINT Ccheck1 CHECK( Cust_ID BETWEEN 101 AND 105),
Cust_Last_Name VarChar2(20) CONSTRAINT Nnull2 NOT NULL,
Cust_Mid_Name VarChar2(4),
Cust_First_Name VarChar2(20),
Account_No Number(5) CONSTRAINT Pkey1 PRIMARY KEY,
Account_Type VarChar2(10) CONSTRAINT Nnull3 NOT NULL,
Bank_Branch VarChar2(25) CONSTRAINT Nnull4 NOT NULL,
Cust_Email VarChar2(30)
);
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is full text indexing in mysql?
How to create a trigger in mysql?
What is offset limit?
How do I clear a mysql database?
What are the indexes in mysql?
What is the difference between mysql and sql?
How do I select a table in mysql?
What is the difference between unix timestamp and mysql timestamp?
What is cursor in mysql?
explain GROUPBY & HAVING clause with examples.
What is the difference between b-tree and hash indexes?
How do I find the size of a mysql database?
How to delete a table.
How can you see all indexes defined for a table?
What is use of mysql?