gpt4 book ai didi

c# - Visual Studio 表适配器配置向导无法解析 mysql 语句

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

我有一条 MySQL 语句,当在 MySQL 工作台中执行时,该语句成功返回结果。相关声明如下:

SELECT report.*, client.`Client`, 3rdpartyreport.`Status` FROM report
LEFT JOIN client ON report.ClientID = client.ID
LEFT JOIN 3rdpartyreport ON (report.`Serial No` = 3rdpartyreport.`Serial No` AND report.`AssignedTo` = 3rdpartyreport.`Received By`)
WHERE (report.Status <> 'Deleted')
ORDER BY report.`Serial No` DESC

我正在将客户端表和第 3rdparty 表中的一列连接到报告表中。但是,当我将这个确切的查询输入 Visual Studio 2013 数据集设计器时,它会给出错误:

Error in join expression. Unable to parse query text.

只要我删除其中一个 LEFT JOIN 行,它就可以正常工作。为什么 Visual Studio 不允许多个左连接?我做错了什么吗?如果没有,还有其他方法可以达到相同的结果吗?

最佳答案

想通了。我需要将 3rdpartyreport 写为“3rdpartyreport”,因为它以数字开头。工作台显然不需要这个。

关于c# - Visual Studio 表适配器配置向导无法解析 mysql 语句,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36086532/

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