Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在一个过程中运行 send_dbmail 并创建一个 csv 文件。但我想从文件中删除两件事:
我想删除第 2 行和最后一行(受影响的 3 行)。有办法吗?
要删除受影响的 3 行,请在查询开始时使用 SET NOCOUNT ON。在查询结束时,您应该使用 SET NOCOUNT OFF。我想知道,为什么/如何到达那里的 2 号线?
您在哪里使用以及您需要什么类型的结果集?