Algorithm
- Update
words
table - After joining
categories
table - Change
words
image column after replacing some value
Code Examples
#1 Code Example with MySQL
Code -
MySQL
UPDATE words
JOIN categories ON categories.id = words.chapter_id
SET words.image=CONCAT(categories.slug, "/", words.en, ".jpg")
Copy The Code &
Try With Live Editor
Demonstration
Test MySQL Online - https://devsenv.com/page/run-mysql-programming
Update MySQL table column value after Joining two tables