我的表如下所示:
title | slug
------------------------------
The Title | the-title
Another Title | another-title
another title | another-title
我想通过不同的 slug 进行选择,但也希望将标题作为结果的一部分返回。多个比赛返回哪个标题,我不在乎。
所以我的结果是这样的:
[('The Title', 'the-title'), ('Another Title', 'another-title')]