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 a session in mysql?
What are the differences between char and nchar?
What are the different types of triggers in mysql?
Can I copy mysql data directory?
How do I stop a query in mysql workbench?
What is an index? How can an index be declared in mysql?
How you can create a trigger in mysql?
How would you get the current date in mysql?
What is a definer?
How can you make a database as your current database?
What is blob and clob?
Can we store videos in mysql database?
What do you need to connect php to mysql?
How to use mysqldump to create a copy of the database?
What is the difference between is null & is not null?