About 795,000 results
Open links in new tab
  1. SQL Server Insert Example - Stack Overflow

    46 I switch between Oracle and SQL Server occasionally, and often forget how to do some of the most trivial tasks in SQL Server. I want to manually insert a row of data into a SQL Server …

  2. Insert all values of a table into another table in SQL

    Feb 23, 2009 · I am trying to insert all values of one table into another. But the insert statement accepts values, but i would like it to accept a select * from the initial_Table. Is this possible?

  3. Copy rows from the same table and update the ID column

    39 I have the following table I have inserted Product B to it and it gives me an ID of 15 Then I have the definition table which is as follows. I want to select the ProductDefinition rows where …

  4. sql - Insert into ... values ( SELECT ... FROM ... ) - Stack Overflow

    Aug 25, 2008 · 1896 I am trying to INSERT INTO a table using the input from another table. Although this is entirely feasible for many database engines, I always seem to struggle to …

  5. sql - Perform insert for each row taken from a select? - Stack …

    Dec 5, 2016 · I have a number of records that I need to insert into multiple tables. Every other column will be a constant. Poor pseudo code below - this is what I want to do: create table …

  6. How to insert an auto_increment key into SQL Server table

    I want to insert rows into a table that has a unique, non auto-incremented primary key. Is there a native SQL function to evaluate the last key and increment it or do I have to do it in two steps:...

  7. sql - How to copy a row and insert in same table with a …

    Feb 6, 2012 · The other fields just go along for the ride, unchanged. This makes the SQL statements easier to write, easier to read, easier to maintain, and more extensible. Only …

  8. Sql Server trigger insert values from new row into another table

    Feb 11, 2010 · I'd like to set up a trigger on the aspnet_users table that inserted the user_id and the user_name of the new row into another table. How do I go about getting the values from …

  9. How can INSERT INTO a table 300 times within a loop in SQL?

    In SQL, you should generally try to write set-based code, not procedural, step by step code. So, the SQLish thing to ask for is "how do I insert 300 rows into my table, where each row gets a …

  10. sql - How to insert date values into table - Stack Overflow

    Dec 17, 2015 · How can I insert into table with different input using / ,with date datatype?