Categories
MySQL

MySQL UPDATE Statement

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
Avatar for Namaste UI (Author)

By Namaste UI (Author)

Namaste UI collaborates closely with clients to develop tailored guest posting strategies that align with their unique goals and target audiences. Their commitment to delivering high-quality, niche-specific content ensures that each guest post not only meets but exceeds the expectations of both clients and the hosting platforms. Connect with us on social media for the latest updates on guest posting trends, outreach strategies, and digital marketing tips. For any types of guest posting services, contact us on info[at]namasteui.com.

Leave a Reply

Your email address will not be published. Required fields are marked *