How can I use ColdFusion to modify database structure?
I have a project that requires me to import hundreds of tables into PostgreSQL from dBase. The import is simple enough. However, I need to rename all the columns to meet my organization,s naming conventions. This requires me to prepend a data type name to the column name.
For example... I have three columns named NAME, LOCATION and EDOP. These columns are typed varchar, number and date respectively. These columns need to be altered so their new column names are vchar_name, num_location and date_edop respectively.
Since there are thousands of columns, performing this task manually is not plausible. I think I can use CF to perform the task for me, but I am not certain how to do so.
Has anyone performed a similar task and would be willing to share some code example?
Thanks,
Lee
