Posts Tagged ‘alter table’

How to assign Default value of the Field in the table


Use the ALTER TABLE command to assign the default value of the field.

Example:

ALTER TABLE [dbo].[tblHyperLink] ADD CONSTRAINT [DF__tblHyperL__LastU__021E29CA] DEFAULT (getdate()) FOR [LastUpdate]
GO

, ,

No Comments



SetPageWidth