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

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

WBOY
Release: 2016-06-06 09:36:31
Original
1871 people have browsed it

mysql一对多数据数据库sql

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template