About 50 results
Open links in new tab
  1. Creating SQL tables dynamically in a loop - Stack Overflow

    Jun 8, 2022 · In the first dynamic SQL statement it's created and destroyed all with the execution of sp_executesql. If you combine them both into a single dynamic SQL statement then you will be able …

  2. T-SQL How to create tables dynamically in stored procedures?

    Jun 4, 2012 · UPDATE: Based on your comment below you are actually trying to create tables in a stored procedure. For this you would need to use dynamic SQL. Basically dynamic SQL allows you …

  3. sql server - Creating one Table from three different Tables - Stack ...

    I have three tables in SQL and I need them to all be combined into one. I need all the fields from all the tables in the one table. All the tables contain the same fields just from three different ...

  4. Creating a table using SQL In Access - Stack Overflow

    Oct 26, 2014 · So I am trying to create this table in access SQl. I know the basics of creating tables. However I am stuck with extra details to each field. HEre is what I need to create: How would i go …

  5. sql - How do you create a temporary table in an Oracle database ...

    Yep, Oracle has temporary tables. Here is a link to an AskTom article describing them and here is the official oracle CREATE TABLE documentation. However, in Oracle, only the data in a temporary …

  6. sql - Creating tables with fields from 2 different tables - Stack Overflow

    Jul 22, 2009 · I want to create a table that stores values from two different tables; From table 1: cust_id (varchar2), invoice_amt (float) From table 2: cust_id (from table 1), payment_date My table should …

  7. SQL two tables and creating a link table - Stack Overflow

    Jul 30, 2013 · I have two tables: Employee (ID, Name, Address) and Store (ID,Address) and I would like to record information about people who work in each store. I thought of making a new table called …

  8. Dynamically creating Tables with while loop SQL - Stack Overflow

    May 24, 2019 · Dynamically creating Tables with while loop SQL Ask Question Asked 6 years, 9 months ago Modified 6 years, 9 months ago

  9. postgresql - Creating temporary tables in SQL - Stack Overflow

    Mar 29, 2013 · The SQL standard also defines, and Postgres also supports: SELECT INTO. But its use is discouraged: It is best to use CREATE TABLE AS for this purpose in new code. There is really no …

  10. sql - Creating a new table from two existing tables with every ...

    Oct 24, 2012 · I have two temporary tables #a and #b both filled with integer values. Let's say they both contain 10 rows with values 1-10. I want to create a third temporary table #c that contains every …