About 50 results
Open links in new tab
  1. 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 …

  2. How to generate the "CREATE TABLE" SQL statement for an …

    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 …

  3. sql - Create a temporary table from a selection, or insert if table ...

    Dec 14, 2023 · How to create a temporary table if it does not already exist, and add selected rows to it?

  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 …

  5. 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)?

  6. 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

  7. How to add a column with a default value to an existing table in …

    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 …

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

    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 …

  9. How do I create a foreign key in SQL Server? - Stack Overflow

    I have never "hand-coded" object creation code for SQL Server and foreign key decleration is seemingly different between SQL Server and Postgres. Here is my sql so far: drop table …

  10. Create table (structure) from existing table - Stack Overflow

    Mar 24, 2010 · To learn why Where 1 = 2 is included, see Why use "where 1=2" on a SQL CREATE TABLE syntax? If you want to copy the entire structure, you need to generate a …