Dbvis直接导出SQL查询结果数据到指定文件
1、首先连接上数据库,写一个很简单的SQL,然后执行查询

2、右键选择数据【export】

3、选择编码【UTF-8】,以及导出文件格式比如【excel】,点击下一步

4、如果没什么问题默认,点击下一步即可

5、最后选择导出路径,然后点击就setting中复制copy

6、粘贴到SQL编辑框中,如下图所示,可以直接修改表名和sql以及存储路径等等信息。

7、当然可以直接使用小编的以下这一段,直接修改SQL和存储路径就可以使用了,其他的信息项可以根据实际的需求进行调整。
@export on;
@export set AppendFile="false"
BinaryFileDir=""
BinaryFormat="Value"
BooleanFalseFormat="false"
BooleanTrueFormat="true"
CLOBFileDir=""
CLOBFormat="Value"
ClipboardName=""
CsvColumnDelimiter="\t"
CsvIncludeColumnHeader="true"
CsvIncludeSQLCommand="Don't Include"
CsvRemoveNewlines="false"
CsvRowCommentIdentifier=""
CsvRowDelimiter="\n"
DateFormat="yyyy-MM-dd"
DecimalNumberFormat="Unformatted"
Destination="File"
Encoding="UTF-8" --指定编码
ExcelFileFormat="OOXML, Excel 2007 (xlsx)"
ExcelIncludeColumnHeader="true" --是否导出表头
ExcelIncludeSQLCommand="false"
ExcelIntroText=""
ExcelTextOnly="false"
ExcelTitle=""
Filename="C:\Users\kkkk\Desktop\dual.xlsx"
Format="XLS"
HtmlIncludeSQLCommand="false"
HtmlIntroText=""
HtmlTitle=""
ImageHeight=""
ImageWidth=""
NumberFormat="Unformatted"
Orientation="Portrait"
QuoteDuplicateEmbedded="true"
QuoteTextData="None"
RowCount="100" --导出条数
ShowNullAs="(null)"
SqlBlockBeginDelim="--/"
SqlBlockEndDelim="/"
SqlCommanderEditor="New Editor"
SqlIncludeCreateDDL="false"
SqlIncludeSQLCommand="Don't Include"
SqlRowCommentIdentifier="--"
SqlSeparator=";"
TableName="dual" --指定表名
TimeFormat="HH:mm:ss"
TimeStampFormat="yyyy-MM-dd HH:mm:ss"
TxtIncludeColumnHeader="true"
TxtIncludeSQLCommand="Don't Include"
TxtRemoveNewLines="false"
TxtRowDelimiter="\n"
TxtSpacesBetweenColumns="1"
XmlIncludeSQLCommand="false"
XmlIntroText=""
XmlStyle="DbVisualizer";
--执行的SQL脚本--START
select * from dual;
--执行的SQL脚本--END
@export off;