About 50 results
Open links in new tab
  1. How to generate the "CREATE TABLE" SQL statement for an existing …

    I have created a table in PostgreSQL. I want to look at the SQL statement used to create the table but cannot figure it out. How do I get the CREATE TABLE SQL statement for an existing table in Pos...

  2. In SQL Server, how do I generate a CREATE TABLE statement for a …

    Sql server Show create table Mysql-style "Show create table" and "show create database" commands from Microsoft sql server. The script is written is Microsoft asp-language and is quite easy to port to …

  3. Create SQL table with the data from another table

    Aug 7, 2010 · How do I create a table using data which is already present in another table (copy of table)?

  4. sql - How to create Temp table with SELECT - Stack Overflow

    Jul 15, 2012 · Note also that any temporary table created inside a stored procedure is automatically dropped when the stored procedure finishes executing. If stored procedure A creates a temp table …

  5. sql - Drop a temporary table if it exists - Stack Overflow

    I have two lines of code in SQL that create two tables on the fly, i need to do something like IF TABLE EXISTS DROP IT AND CREATE IT AGAIN ELSE CREATE IT my lines are the following ones ...

  6. How to add a column with a default value to an existing table in SQL ...

    Jun 21, 2016 · ALTER TABLE [dbo.table_name] ADD [Column_Name] BIT NOT NULL Default ( 0 ) Here is another way to add a column to an existing database table with a default value. A much more …

  7. How to create temp table using Create statement in SQL Server?

    Mar 26, 2017 · How to create temp table using Create statement in SQL Server? Asked 8 years, 11 months ago Modified 1 year, 3 months ago Viewed 345k times

  8. how to get DDL (create query of a table) of a table from SQL Developer

    Jan 20, 2022 · am using Spool in SQL Developer to get the Output into a CSV file. where as i have heard of use of DDL command can b done to get the create query of a table. my query is as below …

  9. sql - How to view query that was used to create a table ... - Stack ...

    Apr 4, 2015 · I create about 15 tables and create relationships and constraints among them using Wizard in SQL Server 2012 express Now i want to see the query that is used to create those tables …

  10. Generate SQL Create Scripts for existing tables with query

    I'm trying to get the CREATE scripts for existing tables within SQL Server 2008. I assume I can do this by querying the sys.tables somehow, however this isn't returning me the CREATE script data.