Excel文件中的特殊字符将被隐藏. [英] Special character in Excel file which will be hide.

查看:173
本文介绍了Excel文件中的特殊字符将被隐藏.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用bcp命令制作excel文件.

Hi,

I am using bcp command to make excel file.

SET @bcpCommand = 'bcp "SELECT  top(10)  UniqueTxnId_BatchID + char(160) AS UniqueTxnId_BatchID  FROM TestDb.dbo.Rep_Txn_Dump" queryout "'




excel打开时,UniqueTxnId_BatchID是数字,它将转换为指数形式,因此我添加了char(160)这是空格,它将显示特殊字符(ÿ),如符号.我想在sql查询中添加哪个字符...

我尝试了所有无法解决的字符

请帮帮我.

问候

GUPTHA




UniqueTxnId_BatchID is numeric digits when excel opening it will convert it to exponential form, so i added char(160) which is space, it will shows the special character (ÿ) like symbol. which character i want to add in sql query...

i tried all characters it is not solving

please help me.

Regards

GUPTHA

推荐答案

不太了解为什么要在末尾添加空间,但是如果这样做,请尝试使用
Don''t quite understand why you want to add space to the end, but if you do, try using
char(32)


这篇关于Excel文件中的特殊字符将被隐藏.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆