Goran Level: Moderator
 Registered: 16-05-2002 Posts: 1681
|
Re: add column in database dynamically
YOu can use SQL to add column to existing table, using ALTER TABLE and ADD COLUMN keywords.
| ALTER TABLE table_name ADD column_name datatype |
As for the "inserting column", you dont need to insert in in a particular place. You can insert it in the end, and when you fetch data from table, in SELECT statement you will set the order of the columns to be shown.
____________________________
If you find the answer helpful, please mark this topic as solved.
|