0

I have two tables one called profile and the other pictures. In the picture table there is a field that is supposed to have the parent_id inserted in the field. I used the below script in MSSQL SERVER and it worked but it fails to work on mysql

update pictures 
  set up_user_id = (
               select profile.profile_id 
                 from profile 
                where profile.email = pictures.email
              )

when i execute i get 0 rows affected.

user6579134
  • 749
  • 3
  • 10
  • 35

0 Answers0