Package net.sf.jsqlparser.statement.alter

Examples of net.sf.jsqlparser.statement.alter.Alter


  }

  public void testAlterTableAddColumn() throws JSQLParserException {
    Statement stmt = CCJSqlParserUtil.parse("ALTER TABLE mytable ADD COLUMN mycolumn varchar (255)");
    assertTrue(stmt instanceof Alter);
    Alter alter = (Alter)stmt;
    assertEquals("mytable",alter.getTable().getFullyQualifiedName());
    assertEquals("mycolumn", alter.getColumnName());
    assertEquals("varchar (255)", alter.getDataType().toString());
  }
View Full Code Here

TOP

Related Classes of net.sf.jsqlparser.statement.alter.Alter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.