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

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

  3. 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 exams; drop table

  4. 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 …

  5. 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 …

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

  7. Create enum in SQL Server - Stack Overflow

    Sep 7, 2018 · 19 There is no enum datatype available in SQL Server like in MySQL. But using the CHECK constraint enum functionality can be implemented.

  8. 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 Create Script of the …

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

    Mar 26, 2017 · An equivalent of this is , a declared table variable. This has a little less "functions" (like indexes etc) and is also only used for the current session. The is one that is the same as the , …

  10. sql - How to create id with AUTO_INCREMENT on Oracle? - Stack …

    It appears that there is no concept of AUTO_INCREMENT in Oracle, up until and including version 11g. How can I create a column that behaves like auto increment in Oracle 11g?