About 10,100,000 results
Open links in new tab
  1. 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 remember the …

  2. Inserting multiple rows in a single SQL query? - Stack Overflow

    Jan 17, 2009 · In SQL Server 2008 you can insert multiple rows using a single INSERT statement.

  3. SQL Server Insert Example - Stack Overflow

    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 database table

  4. SQL Server INSERT INTO with WHERE clause - Stack Overflow

    I'm trying to insert some mock payment info into a dev database with this query: INSERT INTO Payments(Amount) VALUES(12.33) WHERE Payments.CustomerID = '145300'; How can adjust...

  5. sql - INSERT vs INSERT INTO - Stack Overflow

    May 27, 2017 · 5 In SQL Server 2005, you could have something in between INSERT and INTO like this: INSERT top(5) INTO tTable1 SELECT * FROM tTable2; Though it works without the INTO, I …

  6. sql - How to insert a value that contains an apostrophe (single quote ...

    Dec 16, 2009 · The apostrophe, or single quote, is a special character in SQL that specifies the beginning and end of string data. This means that to use it as part of your literal string data you need …

  7. SQL Server Insert if not exists - Stack Overflow

    A single insert statement is always a single transaction. It's not as if the SQL Server evaluates the subquery first and then at some later point, and without holding a lock, goes on to do the insert.

  8. sql - Using the WITH clause in an INSERT statement - Stack Overflow

    The problem here is with your INSERT INTO statement, which is looking for VALUES or SELECT syntax. INSERT INTO statement can be used in 2 ways - by providing VALUES explicitly or by …

  9. sql - How do I use an INSERT statement's OUTPUT clause to get the ...

    INSERT INTO MyTable ( Name, Address, PhoneNo ) VALUES ( 'Yatrix', '1234 Address Stuff', '1112223333' ) How do I set @var INT to the new row's identity value (called Id) using the OUTPUT …

  10. sql server - INSERT INTO vs SELECT INTO - Stack Overflow

    EDIT: While you can use CREATE TABLE and INSERT INTO to accomplish what SELECT INTO does, with SELECT INTO you do not have to know the table definition beforehand. SELECT INTO is …