Withdata Software

Producing high-quality database tools

Main menu

Skip to primary content
Skip to secondary content
  • Withdata Software
  • Blog
  • Categories
  • Tags

Tag Archives: generate a CREATE TABLE statement

How to generate a CREATE TABLE statement for a given table in Mysql

Posted on June 13, 2013 by Shiji Pan

Just use SHOW CREATE TABLE SHOW CREATE TABLE my_table See also: How to generate a CREATE TABLE statement for a given table in SQL Server How to generate a CREATE TABLE statement for a given table in Oracle How to generate a CREATE TABLE statement for a given table in SQLite Some MySQL tools you ... Read more

Posted in Mysql | Tagged generate a CREATE TABLE statement, Mysql

How to generate a CREATE TABLE statement for a given table in Oracle

Posted on June 12, 2013 by Shiji Pan

select dbms_metadata.get_ddl('TABLE', 'the_table_name', 'the_schema_name') from dual Replace “the_table_name” and “the_schema_name” with yours. See also: How to generate a CREATE TABLE statement for a given table in SQL Server How to generate a CREATE TABLE statement for a ... Read more

Posted in Oracle | Tagged generate a CREATE TABLE statement, Oracle

How to generate a CREATE TABLE statement for a given table in SQL Server

Posted on June 12, 2013 by Shiji Pan

declare @table varchar(100) set @table = 'my_table' -- set table name here declare @sql table(s varchar(1000), id int identity) -- create statement insert into @sql(s) values ('create table [' + @table + '] (') -- column list insert into @sql(s) select ' ['+column_name+'] ' + ... Read more

Posted in Sql Server | Tagged generate a CREATE TABLE statement, Sql Server

Recent Posts

  • Use Cases for Dumping to CSV
  • Convert Text to Speech by CSV / TSV
Withdata Software. ©2004 - 2025 All rights reserved.