gpt4 book ai didi

MySQL 返回一个空结果集(即零行),其中期望多于零行

转载 作者:太空宇宙 更新时间:2023-11-03 12:10:44 25 4
gpt4 key购买 nike

  SELECT username FROM `info` WHERE id
in ('919953990950_1403180247868.707,
919953990950_1403239797121.525,
919953990950_1403241821083.838,
919953990950_1403248486971.661,
919953990950_1403248511255.484,
919953990950_1403248860947.79,
919953990950_1403255594277.013') and username !='1403176452487620892' limit 50

这不是选择行我的查询有什么问题?

最佳答案

您需要用单引号将每个值括起来,而不是整个列表:

  SELECT username
FROM `info`
WHERE id in ('919953990950_1403180247868.707',
'919953990950_1403239797121.525',
'919953990950_1403241821083.838',
'919953990950_1403248486971.661',
'919953990950_1403248511255.484',
'919953990950_1403248860947.79',
'919953990950_1403255594277.013'
) and
username <> '1403176452487620892'
limit 50;

关于MySQL 返回一个空结果集(即零行),其中期望多于零行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24325924/

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