sql - mysql query, two select -
As soon as I apologize because I do not know or are not able to bother at all.
How to get the value from the table user_address
How to determine the user ID in the second "selection".
Select ID, name, age, (choose address from user_address) where user_id =? User.ID ORDER
As an addendum that already exists, you can probably To give some meaning meaning, the databases should not depend on the specific sequence of rows. If you have a better way to address after the address, then you can use joining, like:
id, name, age , Address can be included in user_address at user.add = user_address.user_id, where address_type = 'home'
(adjust the section to do whatever)
Comments
Post a Comment