Groups | Blog | Home
all groups > sql server clients > june 2004 >

sql server clients : how can I insert !


Noor
6/29/2004 9:50:46 AM
I have a following table :

CREATE TABLE [dbo].[defaultvalue] (
[id] [int] IDENTITY (1, 1) NOT NULL ,
[flag] AS ([id] + 1)
) ON [PRIMARY]
GO

I want to insert the data in it, how can I insert ?

Thanks
NOOR

Hari
6/29/2004 3:25:42 PM
Hi,

Use the DEFAULT VALUES along with insert statement.

insert into dbo.defaultvalue DEFAULT VALUES

--
Thanks
Hari
MCDBA
[quoted text, click to view]

Noor
6/29/2004 6:48:40 PM
Thanks Hari

Thanks
Noor

[quoted text, click to view]

AddThis Social Bookmark Button