如何在 SQLCMD 中抑制连字符 [英] How to suppress hyphens in SQLCMD

查看:31
本文介绍了如何在 SQLCMD 中抑制连字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何从这个 sqlcmd 命令的结果集中抑制连字符 (------------):

How can I suppress hyphens (------------) from the results set of this sqlcmd command:

C:\temp>sqlcmd -d AdventureWorks -s ";" 
 -Q "SET NOCOUNT ON SELECT top 5 FirstName, LastName FROM Person.Contact;"
FirstName                                         ;LastName
--------------------------------------------------;----------------------------
Gustavo                                           ;Achong
Catherine                                         ;Abel
Kim                                               ;Abercrombie
Humberto                                          ;Acevedo
Pilar                                             ;Ackerman

C:\temp>

推荐答案

我认为没有任何选项可以实现这一点 - 恐怕你必须忍受这些标题.

I don't think there's any option available to achieve this - you'll have to live with those headers, I'm afraid.

这篇关于如何在 SQLCMD 中抑制连字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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