views:

33

answers:

1

Hi ,

I need to add default value column in SqlServer Compact....i am new to this SQL server compact so Plz anyone tell me the Solution of this....

Thanks In Advance

+1  A: 

You use the DEFAULT constraint when declaring the column.

See this MSDN article.

myCol INT NOT NULL DEFAULT (20)

In the example above, the values for column myCol will default to 20.

Oded
Thanks... Then how can i insert values in that mycol column
Suryakavitha
if i hav columns like name,id,mycol means how can i have to insert values in that table...
Suryakavitha
You update them the same way you normally would.
Oded