Skip to content
Magenaut

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

sql-insert

Bulk insert data into empty (but existing) records with SQL

November 29, 2022 by Magenaut

The first table columns (A to G) are already filled with data for each row/record, but the columns H to K have no data in it yet. So I have to add data for these columns, for each individual row in the table (1 to 285, whatever the number is). Columns A to G should remain unaltered!

Categories MySQL, Q&A Tags database, mysql, sql, sql-insert Leave a comment

Insert multiple rows into MySQL Table ( PHP problem )

November 26, 2022 by Magenaut

how can I insert multiple rows into MySQL with php so that after one single query the MySQL Table would look like:

Categories MySQL, Q&A Tags mysql, php, sql-insert Leave a comment

Insert value in a column conditionally in MySQL

November 26, 2022 by Magenaut

I have a table Persons with columns PersonId, FirstName, DeptId and City. The PersonId is a Primary Key.

Categories MySQL, Q&A Tags mysql, sql-insert, sql-max Leave a comment

mysql copy complete row data from one table to another with different fields

November 26, 2022 by Magenaut

I have a master table

Categories MySQL, Q&A Tags mysql, sql, sql-insert Leave a comment

nodejs mysql affectedRows on insert

November 26, 2022 by Magenaut

I was reading the mysql npm package documentation and was wondering about the following:

Categories MySQL, Q&A Tags mysql, node.js, sql, sql-insert Leave a comment

Insert Into in mysql Case when

November 26, 2022 by Magenaut

I have 2 tables and I made an inner join.

Categories MySQL, Q&A Tags case-when, mysql, sql-insert Leave a comment

How to copy a row and insert in same table and also update specific column with user values in mysql?

November 25, 2022 by Magenaut

In MySQL, I am trying to copy a row in the same table and also increment the primary key and further update a column at the same time.

Categories MySQL, Q&A Tags mysql, sql-insert Leave a comment

How to map value to sinle id in mysql?

November 25, 2022 by Magenaut

I have below 2 tables

Categories MySQL, Q&A Tags database, database-administration, mysql, sql, sql-insert Leave a comment

SQL Insert with max ID + 1 (In-Depth)

November 24, 2022 by Magenaut

I wanted to further elaborate on a question being posed here-
Insert and set value with max()+1 problems

Categories MySQL, Q&A Tags insert, max, mysql, sql, sql-insert Leave a comment

Simple Insert Query Returning Syntax Error

November 24, 2022 by Magenaut

INSERT INTO mk_pay_wages (u_id, year_month, wage) VALUES (14, “2021-06”, 900)

Categories MySQL, Q&A Tags mysql, sql, sql-insert Leave a comment
Older posts
Page1 Page2 Page3 Next →

Recent Comments

  • silverplugins217 on How to add placeholder for contact form7 for dropdown?
  • Shreyas Ikhar on How to add a custom CSS class to core blocks in Gutenberg editor?
  • Magenaut on How to call function on timer ASP.NET MVC
  • Ebaad Uddin on How to call function on timer ASP.NET MVC
  • michealSmith07 on Is there a way to dynamically refresh the less command?

Tags

.net adobe-illustrator adobe-photoshop ajax arrays asp.net asp.net-core asp.net-mvc bash c# css database django eloquent express html java javascript jquery json laravel laravel-4 laravel-5 laravel-8 linux list mongodb mongoose mysql node.js npm pandas php python python-3.x react-hooks react-native react-router reactjs redux regex sql string typescript wordpress
© 2023 Magenaut • Built with GeneratePress