コード例 #1
0
 @Override
 public void addColumn(SQLColumn c) {
   print("\nALTER TABLE ");
   print(toQualifiedName(c.getParent()));
   print(" ADD ");
   print(columnDefinition(c, new HashMap<String, SQLObject>()));
   endStatement(StatementType.CREATE, c);
 }
コード例 #2
0
 @Override
 public void renameColumn(SQLColumn oldCol, SQLColumn newCol) {
   Map<String, SQLObject> empty = new HashMap<String, SQLObject>(0);
   print("sp_rename @objname='");
   print(toQualifiedName(oldCol.getParent()));
   print(".");
   print(createPhysicalName(empty, oldCol));
   print("', @newname='");
   print(createPhysicalName(empty, newCol));
   print("', @objtype='COLUMN'");
   endStatement(StatementType.ALTER, newCol);
 }