Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

insert column 1

Status
Not open for further replies.

batrot

IS-IT--Management
Jun 22, 2002
2
US
Isn't there some way to insert a new column into a table using ColdFusion?
 
I have no experience with Coldfusion, but you could try to use the UPDATE TABLE statement.

But I think I have to raise the question: why? Are you sure it is a wise thing to do?
Well, that is none of my business

Branko
 
Are you intersted in changing the table structure, inserting data into a column of an existing row in a table or adding a new row of data to a table? Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
What I was hoping to do was start an app with a set number of columns, which may need to be added to before the table was calculated for numerical values.

Additionally, it'd be easier and less work to be able to insert a column, a new field, without having to open it in Excel or Access, modify the db, save it, and then revise the template for modifying it.

Is this feasible?
 
Insert is a keyword in SQL that has a specific meaning. Rows are inserted into a table. It appears you want to know how to modify the table structure by adding a column (or field) to the table. The SQL command for adding a columns is the ALTER TABLE command. The following example comes from SQL BOL.

ALTER TABLE doc_exa ADD column_b VARCHAR(20) NULL

See SQL BOL for details about ALTER TABLE.

Terry L. Broadbent - DBA
Computing Links:
faq183-874 contains "Suggestions for Getting Quick and Appropriate Answers" to your questions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top