I’m looking to find out what kind of ‘create table’ statement I would need to create a given table from scratch. I’m especially interested in primary key constraints, unique constraints, foreign key constraints and column names.
How would I do this in Oracle and/or SQL Server?
Oddly enough, the only connection I have to the database is an ODBC connection from a Linux box. Though for Oracle I can almost certainly get SQL*Plus up and running.
In Oracle use
and it will return something like
You can use various settings to filter in or out bits you don’t want.
will give