Tag: insert

57 votes
12 answers
679 views
"INSERT IGNORE" vs "INSERT ... ON DUPLICATE KEY UPDATE"

While executing an INSERT statement with many rows, I want to skip duplicate entries that would otherwise caus

avatar
Leonardo
0 1 0 9
asked 07 September, 2021
63 votes
3 answers
2.3K views
insert into database from Joomla form fields

I am beginner to Joomla! development and have created a very simple module. How do I create a form with 3 tex

avatar
Frederick
0 1 0 9
asked 07 September, 2021
59 votes
6 answers
1.3K views
Postgres error: null value in column "id" - during insert operation

I use postgresql and yii2 framework. Well I got a very interesting error message: SQLSTATE[23502]: Not null v

avatar
Charis
0 1 0 9
asked 07 September, 2021
57 votes
5 answers
469 views
Column count doesn't match value count at row 1

So I read the other posts but this question is unique. So this SQL dump file has this as the last entry. INSE

avatar
Keith
0 1 0 9
asked 07 September, 2021
54 votes
11 answers
1.1K views
Insert into a MySQL table or update if exists

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

avatar
Rudy
0 1 0 9
asked 07 September, 2021
52 votes
13 answers
2.1K views
How to insert multiple rows from array using CodeIgniter framework?

I'm passing a large dataset into a MySQL table via PHP using insert commands and I'm wondering if it

avatar
Jefferey
0 1 0 9
asked 07 September, 2021
54 votes
10 answers
1.7K views
How can I do 'insert if not exists' in MySQL?

I started by googling and found the article How to write INSERT if NOT EXISTS queries in standard SQL which ta

avatar
Bryan
0 1 0 9
asked 07 September, 2021