gpt4 book ai didi

mysql - 连接列中有空格的表

转载 作者:行者123 更新时间:2023-11-29 04:19:05 25 4
gpt4 key购买 nike

<分区>

我似乎无法让这个工作。我有两个要加入的表,但其中一列在一些标题中有一个空格。我正在尝试以下代码但没有成功。

我还没有从连接中购买列,因为我想测试我是否可以连接。

SELECT rcm.activitydatetime, rcm.'lead id', rcm.'new stage'
FROM customername_leads_by_lifecycle_stage_rcm AS rcm
INNER JOIN customername_leads AS leads
ON rcm.'lead id' = leads.ID;

我得到的警告是

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''lead id', rcm.'new stage' FROM customername_leads_by_lifecycle_stage_rcm AS rcm INNE' at line 1

非常感谢任何帮助,谢谢!

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