MYSQL代码错误,stamps.com的ODBC连接器

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MYSQL代码错误,stamps.com的ODBC连接器相关的知识,希望对你有一定的参考价值。

我正在尝试更新此脚本以在stamps.com服务器上使用。

ssx_customers.name值来自另一个表。

SELECT
contacts_cstm.num9c             as OrderId,
contacts_cstm.order_compleate_c     as OrderDate,
contacts_cstm.num9c             as RecipientFirstName,
contacts_cstm.ship_address_c    as RecipientLastName,
contacts_cstm.bisname_c         as RecipientCompany,
contacts_cstm.ship_address_city_c   as RecipientAddress1,
ssx_customers.name          as RecipientAddress2,


FROM contacts_cstm

LEFT OUTER JOIN ssx_customers
ON contacts_cstm.ssx_customers_id_c = ssx_customers.id


WHERE contacts_cstm.order_compleate_c BETWEEN #09/09/2018# AND #09/12/2018#

我怎样才能完成这项任务?

答案

正如评论中所提到的,最后一个选择应该没有逗号:

SELECT
contacts_cstm.num9c             as OrderId,
contacts_cstm.order_compleate_c     as OrderDate,
contacts_cstm.num9c             as RecipientFirstName,
contacts_cstm.ship_address_c    as RecipientLastName,
contacts_cstm.bisname_c         as RecipientCompany,
contacts_cstm.ship_address_city_c   as RecipientAddress1,
ssx_customers.name          as RecipientAddress2 -- ',' was here


FROM contacts_cstm

LEFT OUTER JOIN ssx_customers
ON contacts_cstm.ssx_customers_id_c = ssx_customers.id


WHERE contacts_cstm.order_compleate_c BETWEEN #09/09/2018# AND #09/12/2018#

以上是关于MYSQL代码错误,stamps.com的ODBC连接器的主要内容,如果未能解决你的问题,请参考以下文章

c#用odbc连接mysql报错

DB2,在odbc和mysql之间传递

MAC 安装mysql 连接驱动ODBC时提示安装错误

MySQL ODBC驱动程序安装错误

为啥明明安装了mysql的odbc驱动,却老是提示系统错误126

由于系统错误 126 (MySQL ODBC 5.3 UNICODE Driver),指定驱动程序无法加载。