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

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -