我有以下 SQL 查询工作......几乎。我得到的结果是这样的:
- 摄影作品
- 摄影作品
- 任何物品亲笔签名
- 任何物品亲笔签名
我想得到的是:
- 摄影作品
- 任何物品亲笔签名
这是我的代码:
SQL = "SELECT * "
SQL = SQL + "FROM dbo.event "
SQL = SQL + "JOIN dbo.player_schedule "
SQL = SQL + "ON dbo.event.id=dbo.player_schedule.id_event "
SQL = SQL + "JOIN dbo.player "
SQL = SQL + "ON dbo.player_schedule.id_player=player.id "
SQL = SQL + "JOIN dbo.show_inventory "
SQL = SQL + "ON dbo.player.id=show_inventory.id_player "
SQL = SQL + "JOIN dbo.inventory_item_list "
SQL = SQL + "ON dbo.show_inventory.id_item=inventory_item_list.id "
SQL = SQL + "WHERE dbo.show_inventory.id_player ='"
SQL = SQL + Request.querystring("pass_id_player") & "' "
SQL = SQL + "AND dbo.event.id = '"
SQL = SQL + Request.querystring("pass_id_event") & "' "
SQL = SQL + "ORDER BY dbo.inventory_item_list.sequence"
我只能发布2个链接。但是,其他表具有以下名称。只需在 URL 末尾更改它们:player_schedule、inventory_item_list、show_inventory