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