public class PostgreSqlDDLOperations extends GeneralDDLOperations
conn| Constructor and Description |
|---|
PostgreSqlDDLOperations() |
PostgreSqlDDLOperations(Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
String |
makeCreateSequenceSql(String sequenceName)
创建序列
用表来模拟sequence
create table simulate_sequence (seqname varchar(100) not null primary key,
currvalue integer, increment integer);
|
String |
makeModifyColumnSql(String tableCode,
TableField oldColumn,
TableField column)
修改列定义 ,比如 修改 varchar 的长度
|
addColumn, appendColumnSQL, appendColumnsSQL, appendColumnTypeSQL, appendPkColumnSql, appendPkSql, checkTableWellDefined, checkViewWellDefined, createDDLOperations, createDDLOperations, createSequence, createTable, dropColumn, dropTable, makeAddColumnSql, makeCreateTableSql, makeCreateViewSql, makeDropColumnSql, makeDropTableSql, makeReconfigurationColumnSqls, makeRenameColumnSql, modifyColumn, parseDDL, reconfigurationColumn, renameColumn, setConnectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmakeCreateTableSqlpublic PostgreSqlDDLOperations()
public PostgreSqlDDLOperations(Connection conn)
public String makeCreateSequenceSql(String sequenceName)
GeneralDDLOperationsmakeCreateSequenceSql in interface DDLOperationsmakeCreateSequenceSql in class GeneralDDLOperationssequenceName - 序列public String makeModifyColumnSql(String tableCode, TableField oldColumn, TableField column)
tableCode - 表代码oldColumn - 老的字段column - 字段Copyright © 2024 江苏南大先腾信息产业股份有限公司. All rights reserved.