I want to execute a query in MySQL but it won’t work. This is the query:
Update chambre set nombre_lit = 5 and prix = 10000 where code_ch = 2
If I execute this script it works:
Update chambre set prix = 10000 where code_ch = 2
Update chambre set nombre_lit = 5 where code_ch = 2
But I want to use only one line.
use
COMMAif you have multiple columns to update instead ofAND