我有以下查询并使用 bcp 将结果导出到csv
文件中:
select c.customer_no,
c.cust_name,
(select a.address
from tblAddress a
where a.pkey = b.delivery_address_pkey
) delivery_address,
c.phone,
(select a.address
from tblAddress a
where a.pkey = b.shipping_address_pkey
) Shipping_address
from address a
inner join delshipinfo b on a.pkey = b.delivery_address_pkey
and a.pkey = b.shipping_address_pkey
inner join customerinfo c on c.pkey = b.cust_pkey
我的投放地址值与(blk 17B) First cross street
类似。
使用 bcp 导出后,当我打开文件(blk 17B)
放置在地址单元格中时,First cross street
放在下一个单元格中。数据(blk 17B) First cross street
应该位于地址下的单个单元格中。
如何引用它以使地址字段进入单个单元格。双引号也不起作用。请指教。