All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jp.co.tis.gsp.tools.db.template.db2.createTable.ftl Maven / Gradle / Ivy

Go to download

To automate the routine work of the DBA, it is a tool to be able to concentrate on the data modeling work.

There is a newer version: 5.0.0
Show newest version
<#-- DB2 create table template -->
CREATE TABLE <#if entity.schema?has_content>${entity.schema}.${entity.name} (
<#foreach column in entity.columnList>
  ${column.name} ${column.dataType}<#if column.length != 0>(${column.length}<#if column.scale != 0>,${column.scale})<#if column.isArray()> ARRAY<#if !column.isNullable()> NOT NULL<#if column.isAutoIncrement()> GENERATED ALWAYS AS IDENTITY<#if column.defaultValue?has_content> DEFAULT ${column.defaultValue}<#if column_has_next>,

);
<#if entity.label?has_content>COMMENT ON table <#if entity.schema?has_content>${entity.schema}.${entity.name} is '${entity.label}';
<#foreach column in entity.columnList>
<#if column.label?has_content>COMMENT ON column <#if entity.schema?has_content>${entity.schema}.${entity.name}.${column.name} is '${column.label}';




© 2015 - 2024 Weber Informatics LLC | Privacy Policy