You are on page 1of 3

A DBMS has to be persistent, that is it should be accessible when the program cr

eated the data ceases to exist or even the application that created the data res
tarted. A DBMS also has to provide some uniform methods independent of a specifi
c application for accessing the information that is stored.
RDBMS is a Relational Data Base Management System Relational DBMS. This adds the
additional condition that the system supports a tabular structure for the data,
with enforced relationships between the tables. This excludes the databases tha
t don't support a tabular structure or don't enforce relationships between table
s.
Many DBA's think that RDBMS is a Client Server Database system but thats not the
case with RDBMS.
Yes you can say DBMS does not impose any constraints or security with regard to
data manipulation it is user or the programmer responsibility to ensure the ACID
PROPERTY of the database whereas the rdbms is more with this regard bcz rdbms d
efine the integrity constraint for the purpose of holding ACID PROPERTY.
I have found many answers on many websites saying that
DBMS are for smaller organizations with small amount of data, where security of
the data is not of major concern and RDBMS are designed to take care of large am
ounts of data and also the security of this data.
and this is completely wrong by definition of RDBMS and DBMS

minhaj shunjaruff
Apr 20, 2010
You all are replying wrong.
unique key always allow more than one null value if you want. In oracle one null
value never equals to another null values.
that is the difference between primary key and unique key.you cannot enter same
as well as null values in primary key where as in unique key you cannot enter th
e same values but can enter more than one null value.
just make a table with unique key and check for yourself.

asma farrukh
Aug 22, 2009
A table must contain only one primary key.if a table contains more than one prim
ary key,then these are called composite keys.a primary key must be unique.but a
unique key can't be a primary key.a table contains more than one unidue keys but
a table must be identified by it's primary key.
pula narasima
Jan 05, 2009
Primary key:
1)Primary key is nothing but it is uniqly identified each roe in Table.
2)Primary key Does not Allowes Duplicate values and Null values.
3)Primary key is default Clustered indexes
4)One table can have only one Primary key.
Unique Key:
1)Unique Key is nothing but it is uniqly identified each roe in Table.
2)Unique Key Does not Allowes Duplicate values but allowes only one Null value.
3)Primary key is default Non- Clustered indexes
Regards,
Narasima
sanjeev singh
Aug 22, 2008
The basic differences between Primary Key and Unique key
are as follows. 1) By default Primary Key will generate Clustured Index whereas
Unique Key will Generate Non-Clustured Index. 2) Primary Key is a combination o
f Unique and NOT NULL Constraints so it can t have duplicate values or any NUll Wh
ereas for Oracle UNIQUE Key can have any number of NULL whereas for SQL Server I
t can have only one NULL 3) A table can have only one PK but It can have any num
ber of UNIQUE Key.
manohar reddy
Jun 10, 2008
PRIMARY KEY: A tabLe can aontain only one PRIMARY KEY. I
t Doesn't allow null values, it is used as Foreign Key In Another Table(like Re
ference Key).

UNIQUE: A Table may Contain one or more UNIQUE constraints. Its aloow only one
null value . Use this key We maintain unique vales in the table.
Mohd Nasar
Mar 12, 2008
Both PRIMARY KEY constraint and UNIQUE constraint uses t
o enforce Entity integrity (defines a row as a unique entity for a particular ta
ble), but primary keys do not allow null values.

Both Primary and Unique Keys are enforce uniqueness of the column. But the diffe
reces are given below:
Primary Key:
1) It creates clustered index by default
2) It doesn't allow nulls
Unique Key:
1) It creates non-clustered index by default
2) It allows only one null value

PRIMARY KEY Constraint


Specifies the column that uniquely identifies a row in the table. The identified
columns must be defined as NOT NULL.
Note: If you attempt to add a primary key using ALTER TABLE and any of the colum
ns included in the primary key contain null values, an error will be generated a
nd the primary key will not be added. See ALTER TABLE statement for more informa
tion.
UNIQUE KEY Constraint
Specifies that values in the column must be unique. NULL values are not allowed.
Thanks!
Manoj [InfoAxon Technologies Ltd.]
Puran Mehra
Aug 04, 2006
A table can have only one PRIMARY KEY whereas there can be any number of UNIQUE
keys.
The columns that compose PK are automatically define NOT NULL, whereas a column
that compose a UNIQUE is not automatically defined to be mandatory must also spe
cify the column is NOT NULL.

You might also like