Home  >  Article  >  Database  >  mysql-SQL数据库一对多关系如何取出多条数据?

mysql-SQL数据库一对多关系如何取出多条数据?

WBOY
WBOYOriginal
2016-06-06 09:36:311851browse

mysql一对多数据数据库sql

现在有两张表,表一是users(用户表)表二是works(作品表)
一个用户可以有多个作品,查询后显示结果如下,请问怎么查询?
显示样式

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn