How Can we Alter a Table Structure or can add columns in a Existing table

create table tbnew (empno int,ename varchar(50))

——————————————————

select *From tbnew

–Alter Command to a Table

alter table tbnew  add eadd varchar(200),esal int

–Check Table Structure Two More Columns will have Added

select *from tbnew

exec sp_help tbnew

Be Happy Friends!!!!

Hope it will be helpful for you

Advertisements
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s