Skip to main content

How do i add multiple column in the existing table . Please share me the syntax to add multiple colu

  • October 28, 2013
  • 4 replies
  • 20 views

Soumya_Behera
Forum|alt.badge.img+1
How do i add multiple column in the existing table . Please share me the syntax to add multiple colu

4 replies

colin_loghin
Forum|alt.badge.img+2
  • Participating Frequently
  • October 28, 2013
Soumya,
This question can be answered with the SQL reverence manual.
Adding multiple columns can be run by running adding 1 column repeatedly.

As per SQL reference / SQL Statements / ALTER TABLE
CREATE TABLE test6 (a INT);
ALTER TABLE test6 ADD COLUMN b INT DEFAULT 5 NOT NULL;
Hope this helps.

Soumya_Behera
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • October 29, 2013
What should i give in the Data source field.

Soumya_Behera
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • October 29, 2013
image
Thanks for replying . Can you please suggest what should i give in data source column ?

Soumya_Behera
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • October 29, 2013
Thanks . But i was asking for whether in single query we can add more column. Anyway we can do it one by one .