Model.tabledeletecolumn#
- Model.tabledeletecolumn(name, column_index)#
Deletes a column of data from a table.
- Parameters:
name (hwString) – The name of the table to update.
column_index (unsigned int) – The index of the column to delete. Tables are indexed starting from 1 (1 to n columns). If specified as 0, the last column in the table is deleted.
Examples#
Delete the last column from “ table1 “ , which has 11 columns#import hm import hm.entities as ent model = hm.Model() model.tabledeletecolumn(name="table1", column_index=0)
Delete the last column from “ table1 “ , which has 11 columns ( Alternatively )#import hm import hm.entities as ent model = hm.Model() model.tabledeletecolumn(name="table1", column_index=11)
Delete column 3 from “ table1 “#import hm import hm.entities as ent model = hm.Model() model.tabledeletecolumn(name="table1", column_index=3)