Categories: MySQL

MySQL UPDATE Statement

Share

Using MySQL UPDATE statement you can update existing data in a table. it can be a single column or multiple rows.

Here is a simple example of MySQL UPDATE:

UPDATE users 
SET 
user_address = 'Kolkata, India',
user_state = 'WB'
WHERE user_id = 247

You can also update fields depends on JOIN query on two or more tables.

UPDATE users
INNER JOIN score ON user.score_value = score.score_value
SET rank = rank * score_value

Recent Posts

Guest Topic Name : Top 5 Must-Have Features Every Mobile App Needs to Succeed

Introduction Businesses understand the diverse requirements of mobile applications, which provide a competitive advantage. There…

1 hour ago

IoT Data Analytics: Ways to Gain Value from IoT Data

The Internet of Things (IoT) has recently changed the world. It links gadgets together and…

2 hours ago

The Rise of NFTs: Exploring the Impact of Non-Fungible Tokens on the Digital Economy

NFTs, or Non-Fungible Tokens, are revolutionizing the digital economy. These unique digital assets, authenticated through…

19 hours ago

Unveiling the Truth: Is the Spread of Sinus Infections a Myth or Reality?

Sinus infections, impacting approximately 31 million Americans each year, represent a significant health concern stemming…

2 days ago

Best Exercises To Reduce Weight & Keep You Stronger & Fitter!

No doubt that balanced weight is the key to wellness. So, when it comes to…

2 days ago

ARTIFICIAL INTELLIGENCE: Advantages And Disadvantages? Everything You Need to Know

Pros And Cons Of AI: Artificial Intelligence directly translates to conceptualizing and building machines that…

2 days ago