| java.lang.Object com.quadcap.sql.StmtDropColumn
StmtDropColumn | public class StmtDropColumn implements Stmt(Code) | | Implementation of SQL ALTER TABLE DROP COLUMN statement.
author: Stan Bailes |
Method Summary | |
public void | deleteColumnConstraints(Session session, Table table, int col) Delete any constraints which reference the specified column. | public void | execute(Session session) Stmt.execute()
For DROP COLUMN, we need to update the table definition, of course. |
StmtDropColumn | public StmtDropColumn(String tableName, String colName)(Code) | | Explicit constructor from table name and column name
|
deleteColumnConstraints | public void deleteColumnConstraints(Session session, Table table, int col) throws SQLException, IOException(Code) | | Delete any constraints which reference the specified column.
Reset all other constraint column maps.
Parameters: col - one-based column number |
execute | public void execute(Session session) throws IOException, SQLException(Code) | | Stmt.execute()
For DROP COLUMN, we need to update the table definition, of course.
But then, we need to update *all* of the rows!
|
|
|