About 50 results
Open links in new tab
  1. mySQL :: insert into table, data from another table?

    What if I wanted to insert three rows of data with the same values from the select but different values for the 'additional' columns added such as email and current_time?

  2. MySQL INSERT INTO ... VALUES and SELECT - Stack Overflow

    Mar 20, 2013 · Is there a way to insert pre-set values and values I get from a select-query? For example:

  3. Insert into a MySQL table or update if exists - Stack Overflow

    Nov 17, 2010 · The INSERT statement allows you to insert one or more rows into a table First, specify the table name and a list of comma-separated columns inside parentheses after the INSERT INTO …

  4. Insert INTO MySQL FROM another table - Stack Overflow

    Apr 19, 2012 · Only use INSERT INTO VALUES when you are using specific values and not selecting from a table. If you wanted to use INSERT INTO VALUES then your query would be like this:

  5. MySQL INSERT INTO table VALUES.. vs INSERT INTO table SET

    May 14, 2009 · Since the syntaxes are equivalent (in MySQL anyhow), I prefer the INSERT INTO table SET x=1, y=2 syntax, since it is easier to modify and easier to catch errors in the statement, …

  6. MySQL direct INSERT INTO with WHERE clause - Stack Overflow

    Oct 18, 2012 · I tried googling for this issue but only find how to do it using two tables, as follows, INSERT INTO tbl_member SELECT Field1,Field2,Field3,... FROM temp_table WHERE NOT …

  7. mysql - INSERT with SELECT - Stack Overflow

    Mar 22, 2011 · One thing should be noted however: The INSERT INTO SELECT statement copies data from one table and inserts it into another table AND requires that data types in source and target …

  8. How can I do 'insert if not exists' in MySQL? - Stack Overflow

    1103 I started by googling and found the article How to write INSERT if NOT EXISTS queries in standard SQL which talks about mutex tables. I have a table with ~14 million records.

  9. sql - How to do a batch insert in MySQL - Stack Overflow

    Apr 3, 2011 · I have 1-many number of records that need to be entered into a table. What is the best way to do this in a query? Should I just make a loop and insert one record per iteration? Or is there a …

  10. sql - How to copy a row and insert in same table with a autoincrement ...

    Feb 6, 2012 · Every time you run this query, This will insert all the rows again with new ids. values in your table and will increase exponentially. I used a table with two columns i.e id and txt and id is auto …