Results 1 to 2 of 2

Thread: Can I Insert a column

  1. #1
    Join Date
    Feb 2003
    Location
    33305
    Posts
    3

    Can I Insert a column

    I there a SQL statement (query) that can insert a new column in the middle of other columns in a table?
    Thanks,
    Donna

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    How does positioning the column make a difference?

    This is what I do.

    create table mytable (id int,name varchar(100));
    alter table mytable add salary money;

    The columns will be appended.

    When you query it you can do like below.

    select id,salary,name from mytable;

Posting Permissions

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