MYSQL 代码错误,stamps.com 的 ODBC 连接器
MYSQL Code error, ODBC connector for stamps.com
我正在尝试更新此脚本以便在 stamps.com 服务器上使用。
ssx_customers.name
值来自另一个 table。
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:
不应有逗号
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#
我正在尝试更新此脚本以便在 stamps.com 服务器上使用。
ssx_customers.name
值来自另一个 table。
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:
不应有逗号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#