Hi,
It depends on the database (acces, oracle.. etc) but an easy way to do it in most of the cases it´s by excuting an SQL (I hope you know how to).
sql = "ALTER TABLE table_name ADD field DOUBLE NOT NULL";
query1.sql:=sql;
query1.execute;
and that's all (In this example I supose thath query1 it´s an ADO component and it´s connected to you database)
Regards
JHL
Main Topics
Browse All Topics





by: kretzschmarPosted on 2005-03-09 at 05:03:01ID: 13495267
query.sql.text := 'alter table TABLENAME add (COLUMNNAME TYPE)'
query.execsql;
just from head -> means untested and typos possible
i recommend to refere your databasemanual about the correct syntax
meikl ;-)