@@identity

B

bbawa1

Hi,

I have a table in which I have four columns.

ID (primary Key)
FirstName,
LastName,
Email

I want to add another column as @@identity in this already existing
table.

How can I do that.
 
P

Patrice

Not sure what you meant by "add a column as @@identity" ?

If you meant you want to add a new IDENTITY column use ALTER TABLE MyTable
INT IDENTITY NOT NULL.

If you meant you want to add another identity column this is just not
possible (makes no sense anyway).

If you meant to use @@identity to feed a column, it shouldn't cause any
problem. What have you tried ?

You may want to explain what you are trying to do for better sugegstion...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top