Sektion 1. Kapitel 35
single
Challenge: Update User Age
Stryg for at vise menuen
Opgave
Swipe to start coding
Write a query to increment the age field in the profile_data JSON column by 1 for all users in the user_profiles table.
- Update each user's
profile_dataso that the value of theagefield is increased by 1. - Only the
agefield in the JSON data should be changed; all other data must remain the same. - The update must apply to all rows in the
user_profilestable.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 1. Kapitel 35
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat