explain the type of contraints
Answers were Sorted based on User's Feedback
Answer / reva ram sahu
constraint is a rule which can not be voilated by end users.
Different types of constraints are available.They are:-
1)default constraint:-which is used to define a default
value.
2)primary key:-the key which does not allows duplication
and null values.
3)foreign key:-the key used to refer primary key defined
field in another table and it allows duplication.
4)null:-which allows NULL values.
5)not null:-which does not allows NULL values.
6)unique key:-which does not allows duplication but allows
NULL values.
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / surya
Constraints are used to provide the scope to table data...
they are..
Primary key
unique key
not null
check
foriegn key
default..
| Is This Answer Correct ? | 3 Yes | 0 No |
Answer / anand
primary constraint
check constraint
notnull constraint
foreign key constraint
| Is This Answer Correct ? | 0 Yes | 1 No |
can you any body tell me while running BCP Out in instance in sql server 2000 is getting error. Error = [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.?
Write a sql query to get zero records from a table having n number of records?
What is merge replication?
how to find number of columns in a table in sql server 2000 and 2005 also
Can we shrink data file in sql server?
After the SQL installation what are the jobs will you configure?
1 Answers G7 CR Technologies, IBM, Satyam,
hi i am working as a testengineer , so i want to no the backend data base connection can any one tell mwe in detail
What is difference between foreign key and unique key?
What are the different types of backups avaialabe in sql server 2005?
What is a data collection table?
1.what is stored procedure?Its significance with example? 2.Explain about index with syntax and example? plz do reply.........
I have a table in which phno is one of the columns.i do have some values in tht phno column.i need to update phno column values with 0(zero) as prefix.give me a correct solution plz...
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)