is there more the two primary key in a single table?

Answer Posted / sivakumar

No, When creating table using script we can create primary
key another one is called composite key that means
combination of more than
one column...



CREATE TABLE [LoginHist] (
[LogDate] [smalldatetime] NOT NULL ,
[ClientIp] [char] (15) NOT NULL ,
[LoginCount] [int] NULL DEFAULT (0),
CONSTRAINT [PK_LoginHist] PRIMARY KEY CLUSTERED
(
[LogDate],
[ClientIp]
) ON [PRIMARY]
) ON [PRIMARY]

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How will you add a dimension to cube? : sql server analysis services, ssas

745


create index myindex on mytable(mycolumn) what type of index will get created after executing the above statement? : Sql server database administration

713


What do I need to start working with sql studio? : sql server management studio

802


query processing

1920


Explain what are the database objects? : SQL Server Architecture

753






What is a file group?

787


Why should one not prefix user stored procedures with ‘sp_’?

804


What part does database design plays a role in performance of an sql server-based application?

717


What is failover clustering overview?

758


Is sql different from sql server?

687


What is triggers and its types?

725


What is the difference between insensitive and scroll cursor?

756


Give me any three differences between Truncate and Delete.

757


Explain different types of lock modes in sql server 2000?

684


Can you name some of the dml commands in sql?

752