MySql Update Format and Syntax -


been @ second part of problem quite long time mysql, , wondering, doing wrong. problem is:

insert new record members table using valid data , update xrefartistsmembers make person member of sonata.

i able first part no problem, , able insert following members

insert members (memberid, firstname, lastname, address, city, region, postalcode, country, homephone, workphone, email, gender, birthday, salesid) values (39, "john", "smith", "449 s hobart blvd", "los angeles", "ca", 90025, "usa", 3235912274, 3103792865, null, "m", "1980-02-12", 4) 

now when try second part, keep getting no changes. anywhere close, or far off?

update xrefartistsmembers x, members m, artists 

set m.memberid = 5 where m.memberid = x.memberid and a.artistid = x.artistid and artistname = "sonata" and m.firstname = "john"


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -