gpt4 book ai didi

sql - 无法进行 mysql 查询

转载 作者:行者123 更新时间:2023-11-29 14:57:47 25 4
gpt4 key购买 nike

SELECT DISTINCT
tr.object_id,tt.taxonomy, im . *
FROM
term_relationships AS tr
INNER JOIN term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
INNER JOIN image AS im ON tr.object_id = im.ID

在上面的查询中,我希望它不显示从 tr.term_taxonomy_id = tt.term_taxonomy_id 获得的结果如果它等于“cat”。

最佳答案

SELECT DISTINCT
tr.object_id,tt.taxonomy, im . *
FROM
term_relationships AS tr
INNER JOIN term_taxonomy AS tt ON tr.term_taxonomy_id = tt.term_taxonomy_id
INNER JOIN image AS im ON tr.object_id = im.ID
WHERE taxonomy != 'cat'

关于sql - 无法进行 mysql 查询,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4116812/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com