Does anyone noe how to programmatically create columns? I'm trying to copy fields from 1 table to another, @ the same time creating some new columns in the target table.
1) Use COPY STRUCTURE EXTENDED to create a new table that contains the original structure, using one record to describe each field in the original. You can then append this table with the data for the new fields. Then use this table to create a new table with the original structure plus the added fields with the CREATE ... FROM command.
2) Programmatically create a new table using the SQL 'CREATE TABLE' command. You will need to plug that command into an executeSQL() method.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.