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.
インタラクティブ モードで sqsh を使用している場合、次の方法でクエリを実行して、素敵な csv ファイルで取得できるようにすることがあります。
1> Blah=Blah のテーブルから * を選択 2> go -m bcp > /file/name/here
1> Blah=Blah のテーブルから * を選択
2> go -m bcp > /file/name/here
私が抱えている唯一の問題は、「-m bcp」オプションを使用しても出力に列名が表示されないことです。これらの列名を「きれいな」方法で取得する方法はありますか?
sqshにCSV表示モードがあります 試してみましたか
試す:
1> select * from Table where Blah=Blah 2> go -m csv > /file/name/here