gpt4 book ai didi

mysql - 执行此查询时,我收到一条错误消息,如子查询返回多个值

转载 作者:行者123 更新时间:2023-11-30 22:25:58 25 4
gpt4 key购买 nike

我收到一条错误消息

subquery returns more than one value

SELECT title,booking_date 
FROM services,user_booking
where services.id=(
select service_id from user_booking where user_id in
(
select distinct id from users where users.email='test')
)

最佳答案

如果您使用 = 条件,您必须确保您的子查询只返回 1 行。否则,使用 in 条件。

关于mysql - 执行此查询时,我收到一条错误消息,如子查询返回多个值,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35200362/

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