About 367,000 results
Open links in new tab
  1. MySQL: Insert record if not exists in table - Stack Overflow

    Jul 2, 2010 · MySQL allows DUAL to be specified as a table in queries that do not need data from any tables.The DUAL table is a special one-row, one-column table present by default in Oracle …

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

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

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

    Nov 17, 2010 · I want to add a row to a database table, but if a row exists with the same unique key I want to update the row. For example: INSERT INTO table_name (ID, NAME, AGE) …

  5. How to insert data to MySQL with auto-incremented column(field)?

    I see three possibilities here that will help you insert into your table without making a complete mess but "specifying" a value for the AUTO_INCREMENT column, since you are supplying all …

  6. "INSERT IGNORE" vs "INSERT ... ON DUPLICATE KEY UPDATE"

    Feb 14, 2009 · Inserting a NULL into a column with a NOT NULL constraint. Inserting a row to a partitioned table, but the values you insert don't map to a partition. If you use REPLACE, …

  7. mysql - SQL Insert JSON into table column - Stack Overflow

    Dec 12, 2020 · While searching for a way to insert array into single DB columns, I found an article about inserting JSON strings. However it wasn't explained how. I tried to search and find the …

  8. How to import data from text file to mysql database

    LOAD DATA INFILE '/tmp/mydata.txt' INTO TABLE PerformanceReport; By default LOAD DATA INFILE uses tab delimited, one row per line, so should take it in just fine.

  9. mysql - INSERT INTO ... SELECT without detailing all columns

    Aug 1, 2016 · Both tables have the same schema All columns should transfer except for the auto-increment id Without explicitly writing all the column names, as that would be tedious The …

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