Results 1 to 2 of 2

Thread: Table in sql server

  1. #1
    PetersonClark is offline Senior Member
    Join Date
    Dec 2009
    Posts
    202
    Rep Power
    3

    Default Table in sql server

    How to add new column in table in sql server

    I am learning SQL language. I have created one table. This table has four columns. I would like to insery new column to this table but I don’t know how to do this. Can anybody tell me how to add new column in table in SQL server. Any help.

  2. #2
    CollinsBrown is offline Senior Member
    Join Date
    Dec 2009
    Posts
    213
    Rep Power
    3

    Default

    It is very easy procedure. In this condition you have to use Alter table command. Try to understand following example. In following program I have create one column with size 15.

    ALTER TABLE USermaster ADD UserType VARCHAR(15) NULL;

Similar Threads

  1. Difference among delete table & prune table
    By MorganCooper in forum Programming
    Replies: 1
    Last Post: 02-10-2010, 04:22 PM
  2. Table Indexes
    By MyersGray in forum Programming
    Replies: 2
    Last Post: 02-05-2010, 06:08 PM
  3. (C) + + Table Structure
    By willi in forum Programming
    Replies: 4
    Last Post: 11-16-2009, 11:57 AM
  4. Working with your table
    By rence54 in forum Technologies
    Replies: 0
    Last Post: 05-22-2008, 12:52 PM
  5. Partition Table
    By techno23 in forum Hard Disk
    Replies: 0
    Last Post: 03-21-2008, 10:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48