How will you a activate/deactivate integrity constraints?
Answers were Sorted based on User's Feedback
Answer / muralidhar v
To Activate any integrity constraint, use Enable command
with Alter and to deactivate use disable with Alter.
To drop any constraint other than NOT NULL, use Drop
command with Alter. We can't drop not null, but we can
change it to NULL with Alter --Modify option.
Is This Answer Correct ? | 5 Yes | 1 No |
Answer / j
Alter table table_name ENABLE constraint constraint_name;
Alter table table_name DISABLE constraint constraint_name;
Is This Answer Correct ? | 0 Yes | 0 No |
What is sharding in sql?
How does postgresql compare to mysql?
how to see the create table statement of an existing table? : Sql dba
what is bcp? When is it used?
Inline the values in PL/SQL, what does it mean.?
What is the usage of sql functions?
Is a foreign key always unique?
Describe different types of general function used in sql?
write a pl/sql function if enter a value=0 then output value=1 and vise verse with out using if and case statements.
need to split a string into seperate values. eg. col1 col2 ---------- 100 - 'a,b,c' 200 - 'a,x,b,d,e' 300 - 'c' result: value count ------------- a - 2 b - 1 c - 2 etc.
How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?
Which is faster view or stored procedure?