爱玺玺

爱玺玺的生活日记本。wx:lb87626

mysql多层嵌套查询

mysql> select (select Name_CN from t_country where id=(select transcountry from talk_uinfo where uid=offer.buyer)) country  from offer;

+------------------------------------------------------+

| country                                              |

+------------------------------------------------------+

| 英国                                                 |

| 英国                                                 |

+------------------------------------------------------+

2 rows in set (0.00 sec)


发表评论:

Powered By Z-BlogPHP 1.4 Deeplue Build 150101

Copyright Your WebSite.Some Rights Reserved.

蜀ICP备11021721号-5