LMSouq
database Open

SQL - Update multiple records in one query

US
user3022527
1 month ago
3 views
Problem Description
I have table - **config**. Schema: `config_name | config_value` And I would like to update multiple records in one query. I try like that: UPDATE config SET t1.config_value = 'value' , t2.config_value = 'value2' WHERE t1.config_name = 'name1' AND t2.config_name = 'name2'; but that query is wrong :( Can you help me?

AI-Generated Solution

Powered by LMSouq AI · GPT-4.1-mini

✓ Solution Ready
Analyzing problem and generating solution…
Was this solution helpful?
Back to Knowledge Base