mysql代码错误,stamps.com的odbc连接器

jfewjypa  于 2021-06-21  发布在  Mysql
关注(0)|答案(1)|浏览(297)

我正在尝试更新此脚本以在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#

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

ct3nt3jp

ct3nt3jp1#

如注解中所述,最后一个select上不应有逗号:

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#

相关问题