是否可以在teradata中获取数据库DDL

时间:2018-05-11 22:33:09

标签: teradata

我知道我们可以使用SHOW TABLE DATABASENAME.TABLENAME来获取teradata中某个表的DDL,

show table customerservice.employee;

结果:

CREATE SET TABLE customerservice.employee ,FALLBACK ,
 NO BEFORE JOURNAL,
 NO AFTER JOURNAL,
 CHECKSUM = DEFAULT,
 DEFAULT MERGEBLOCKRATIO
 (
  employee_number INTEGER,
  manager_employee_number INTEGER,
  department_number INTEGER,
  job_code INTEGER,
  last_name CHAR(20) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL,
  first_name VARCHAR(30) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL,
  hire_date DATE FORMAT 'YY/MM/DD' NOT NULL,
  birthdate DATE FORMAT 'YY/MM/DD' NOT NULL,
  salary_amount DECIMAL(10,2) NOT NULL)
  UNIQUE PRIMARY INDEX ( employee_number );

如果我想显示某个数据库的DDL,是否可能?

0 个答案:

没有答案