在sql中使用SELECT
查詢我得到了許多行和列的結果。它很好地按行和列顯示,沒有一個混合起來。如何打開sql .csv文件?
我右鍵單擊左上角並保存爲.csv。然後我用Excel打開這個文件,我看到很多字段混在一起,或者這些字,值會出現在錯誤的列上。
你知道如何正確的方式來保存結果或如何正確的方式來查看這個.csv文件從SQL?
謝謝。
根據要求更新:我使用Microsoft SQL Server Management Studio。 在我的結果表中的某些行的csv文件保存之前(含此數列)
Company Pte Ltd Advanced Materials Technologies Pte Ltd. produces precision metal and ceramic parts. It offers metal hinges, metal packages, intricate cylinders, and valve components; latches and counterweights for hard disk drives;
或者兩列行(第一個是公司的名字,第二個是公司的特點):
ABC PTE LTD •Project Management
 •Precision Mould Design and Fabrication
 •Multi Colours/Materials Moulding
 •Over Moulding
 •Extreme Thin Wall Compression Moulding
 •Micro Moulding
我試圖點擊結果表格的左上角來選擇全部,然後右鍵單擊並選擇「copy with header」,然後選擇excel。但這裏是一些問題: 在SSMS我看到的結果顯然是這樣的數據:
XYZ Ltd <p> <table border="0" cellspacing="0" cellpadding="0" width="780"> <tbody> <tr> <td valign="top" width="140"> <table border="0" cellspacing="0" cellpadding="0" width="140" height="628"> <tbody> <tr> <td height="628" valign="top" width="140"> <p></p></td></tr></tbody></table></td> <td valign="top" width="500"> <table border="0" cellspacing="0" cellpadding="0" width="500" align="center" height="619"> <tbody> <tr> <td height="619" width="500"> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><b><font color="#333333" face="arial"><span style="FONT-SIZE: 12pt">About Us</span></font></b></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p><img src="http://www.shaofook.com/images/01.jpg" width="240" height="180"> <img src="http://www.shaofook.com/images/02.jpg" width="240" height="180"> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><strong><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"><br />Shao Fook Engineering </span></font></strong><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"><b>Pte Ltd </b>was established in March 1989 as a partnership offering contract services for industrial steel fabrication, installation of equipment for oil refineries, petrochemical, industrial plants, turnkey construction project works for factory expansion and most recently the pharmaceutical industry.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We undertake project work from laydown to complete installation of Packaged equipment such as Pipe Rack Structures, Equipment Structures, Flare Stack Structure, Fired Heaters, HRSG, Boilers, Incinerators, Bio-treaters, Cooling Tower as well as Modular equipment such as Compressors, Pumps, Reactors, Silos, Towers, Exchanges, Loading Arms and quick turn around plant maintenance projects.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"></span></font> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We also perform Laser Alignment of Rotating Equipment.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We have clocked more than 5 million man-hours and handled more than 100,000 Ton of Steel Structure and 50,000 Ton of equipment within customer's budget and schedule. We diligently adhere to safety procedure outlined in our established Work Procedure, Method Statement and Job Safety Analysis.</span></font></p></td></tr></tbody></table></td></tr></tbody></table> <table border="0" cellspacing="0" cellpadding="0" width="780"> <tbody> <tr> <td valign="top" width="140"> <table border="0" cellspacing="0" cellpadding="0" width="140" height="628"> <tbody> <tr> <td height="628" valign="top" width="140"> <p></p></td></tr></tbody></table></td> <td valign="top" width="500"> <table border="0" cellspacing="0" cellpadding="0" width="500" align="center" height="619"> <tbody> <tr> <td height="619" width="500"> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><b><font color="#333333" face="arial"><span style="FONT-SIZE: 12pt">About Us</span></font></b></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p><img src="http://www.shaofook.com/images/01.jpg" width="240" height="180"> <img src="http://www.shaofook.com/images/02.jpg" width="240" height="180"> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><strong><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"><br />Shao Fook Engineering </span></font></strong><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"><b>Pte Ltd </b>was established in March 1989 as a partnership offering contract services for industrial steel fabrication, installation of equipment for oil refineries, petrochemical, industrial plants, turnkey construction project works for factory expansion and most recently the pharmaceutical industry.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We undertake project work from laydown to complete installation of Packaged equipment such as Pipe Rack Structures, Equipment Structures, Flare Stack Structure, Fired Heaters, HRSG, Boilers, Incinerators, Bio-treaters, Cooling Tower as well as Modular equipment such as Compressors, Pumps, Reactors, Silos, Towers, Exchanges, Loading Arms and quick turn around plant maintenance projects.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"></span></font> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We also perform Laser Alignment of Rotating Equipment.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We have clocked more than 5 million man-hours and handled more than 100,000 Ton of Steel Structure and 50,000 Ton of equipment within customer's budget and schedule. We diligently adhere to safety procedure outlined in our established Work Procedure, Method Statement and Job Safety Analysis.</span></font></p></td></tr></tbody></table></td></tr></tbody></table><font color="#333333"><strong><font size="2">Shao Fook Engineering </font></strong><font face="arial"><span style="FONT-SIZE: 9pt"><strong>Pte Ltd </strong>was established in March 1989 as a partnership offering contract services for industrial steel fabrication, installation of equipment for oil refineries, petrochemical, industrial plants, turnkey construction project works for factory expansion and most recently the pharmaceutical industry.</span></font></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We undertake project work from laydown to complete installation of Packaged equipment such as Pipe Rack Structures, Equipment Structures, Flare Stack Structure, Fired Heaters, HRSG, Boilers, Incinerators, Bio-treaters, Cooling Tower as well as Modular equipment such as Compressors, Pumps, Reactors, Silos, Towers, Exchanges, Loading Arms and quick turn around plant maintenance projects.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"></span></font> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We also perform Laser Alignment of Rotating Equipment.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We have clocked more than 5 million man-hours and handled more than 100,000 Ton of Steel Structure and 50,000 Ton of equipment within customer's budget and schedule. We diligently adhere to safety procedure outlined in our established Work Procedure, Method Statement and Job Safety Analysis.</span></font></p> - Heavy Lifting & Logistic Services - Laser Alignment and Leveling of Rotating Equipment - Industrial Fabrication Work & Plant Maintenance - Equipment Installation for Factories & Industrial Plants - Construction Works - Mechanical (Major), Civil, Electrical - Conveyance & Installation of Material Handling & Production Machines - Heavy Lifting & Logistic Services - Laser Alignment and Leveling of Rotating Equipment - Industrial Fabrication Work & Plant Maintenance - Equipment Installation for Factories & Industrial Plants - Construction Works - Mechanical (Major), Civil, Electrical - Conveyance & Installation of Material Handling & Production Machines
但是,當我在Excel中粘貼,我會得到這樣的:
XYZ Ltd <p> <table border="0" cellspacing="0" cellpadding="0" width="780"> <tbody> <tr> <td valign="top" width="140"> <table border="0" cellspacing="0" cellpadding="0" width="140" height="628"> <tbody> <tr> <td height="628" valign="top" width="140"> <p></p></td></tr></tbody></table></td> <td valign="top" width="500"> <table border="0" cellspacing="0" cellpadding="0" width="500" align="center" height="619"> <tbody> <tr> <td height="619" width="500"> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><b><font color="#333333" face="arial"><span style="FONT-SIZE: 12pt">About Us</span></font></b></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p><img src="http://www.shaofook.com/images/01.jpg" width="240" height="180"> <img src="http://www.shaofook.com/images/02.jpg" width="240" height="180"> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><strong><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"><br />Shao Fook Engineering </span></font></strong><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"><b>Pte Ltd </b>was established in March 1989 as a partnership offering contract services for industrial steel fabrication, installation of equipment for oil refineries, petrochemical, industrial plants, turnkey construction project works for factory expansion and most recently the pharmaceutical industry.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We undertake project work from laydown to complete installation of Packaged equipment such as Pipe Rack Structures, Equipment Structures, Flare Stack Structure, Fired Heaters, HRSG, Boilers, Incinerators, Bio-treaters, Cooling Tower as well as Modular equipment such as Compressors, Pumps, Reactors, Silos, Towers, Exchanges, Loading Arms and quick turn around plant maintenance projects.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"></span></font> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We also perform Laser Alignment of Rotating Equipment.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We have clocked more than 5 million man-hours and handled more than 100,000 Ton of Steel Structure and 50,000 Ton of equipment within customer's budget and schedule. We diligently adhere to safety procedure outlined in our established Work Procedure, Method Statement and Job Safety Analysis.</span></font></p></td></tr></tbody></table></td></tr></tbody></table> <table border="0" cellspacing="0" cellpadding="0" width="780"> <tbody> <tr> <td valign="top" width="140"> <table border="0" cellspacing="0" cellpadding="0" width="140" height="628"> <tbody> <tr> <td height="628" valign="top" width="140"> <p></p></td></tr></tbody></table></td> <td valign="top" width="500"> <table border="0" cellspacing="0" cellpadding="0" width="500" align="center" height="619"> <tbody> <tr> <td height="619" width="500"> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><b><font color="#333333" face="arial"><span style="FONT-SIZE: 12pt">About Us</span></font></b></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p><img src="http://www.shaofook.com/images/01.jpg" width="240" height="180"> <img src="http://www.shaofook.com/images/02.jpg" width="240" height="180"> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><strong><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"><br />Shao Fook Engineering </span></font></strong><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"><b>Pte Ltd </b>was established in March 1989 as a partnership offering contract services for industrial steel fabrication, installation of equipment for oil refineries, petrochemical, industrial plants, turnkey construction project works for factory expansion and most recently the pharmaceutical industry.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We undertake project work from laydown to complete installation of Packaged equipment such as Pipe Rack Structures, Equipment Structures, Flare Stack Structure, Fired Heaters, HRSG, Boilers, Incinerators, Bio-treaters, Cooling Tower as well as Modular equipment such as Compressors, Pumps, Reactors, Silos, Towers, Exchanges, Loading Arms and quick turn around plant maintenance projects.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"></span></font> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We also perform Laser Alignment of Rotating Equipment.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We have clocked more than 5 million man-hours and handled more than 100,000 Ton of Steel Structure and 50,000 Ton of equipment within customer's budget and schedule. We diligently adhere to safety procedure outlined in our established Work Procedure, Method Statement and Job Safety Analysis.</span></font></p></td></tr></tbody></table></td></tr></tbody></table><font color="#333333"><strong><font size="2">Shao Fook Engineering </font></strong><font face="arial"><span style="FONT-SIZE: 9pt"><strong>Pte Ltd </strong>was established in March 1989 as a partnership offering contract services for industrial steel fabrication, installation of equipment for oil refineries, petrochemical, industrial plants, turnkey construction project works for factory expansion and most recently the pharmaceutical industry.</span></font></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We undertake project work from laydown to complete installation of Packaged equipment such as Pipe Rack Structures, Equipment Structures, Flare Stack Structure, Fired Heaters, HRSG, Boilers, Incinerators, Bio-treaters, Cooling Tower as well as Modular equipment such as Compressors, Pumps, Reactors, Silos, Towers, Exchanges, Loading Arms and quick turn around plant maintenance projects.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt"></span></font> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We also perform Laser Alignment of Rotating Equipment.</span></font></p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"> </p> <p style="LINE-HEIGHT: 100%; MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px"><font color="#333333" face="arial"><span style="FONT-SIZE: 9pt">We have clocked more than 5 million man-hours and handled more than 100,000 Ton of Steel Structure and 50,000 Ton of equipment within customer's budget and schedule. We diligently adhere to safety procedure outlined in our established Work Procedure, Method Statement and Job Safety Analysis.</span></font></p> #NAME? #NAME?
因此,有2列不認可並把錯誤的數據:
#NAME? #NAME?
你想表示,即你想閱讀或導入CSV文件? – stylishCoder
我的意思是我怎麼讀(不導入).csv文件?是否有任何閱讀器(如excel?)可以用我在sql server中看到的表格格式讀取它? – user1314404
so basicall你想讀取一個.csv格式的sql表格,使用哪種語言.net,php或什麼? – stylishCoder