DB Query Analyzer 7.01 adds the function of saving execution results to multiple files

    

1       Introduction  

Chinese local programmer Ma Genfeng ( CSDN interview with Ma Genfeng : Chinese local programmer who is a master of massive data processing and analysis ) launched a personal work ---- Universal Database Query Analyzer, Chinese version DB  Query Analyzer, English version " DB Query Analyzer " . It has powerful functions, friendly operation interface, good operability, spanning various database platforms and even EXCEL and text files.

You can  query ODBC data sources (including all databases, TXT/CSV files, EXCEL files) data through  it. ②You  can execute multiple DML statements or even stored procedures at the same time, and the results will be returned in the form, text box, and file you set;  ③When  exporting tens of millions of pieces of data from the database, the efficiency is no different from that of DBMS;  ④Permit  execution The recordsets returned by multiple SQL statements are saved in multiple files; ⑤Allows  users to customize single, weekly, monthly "SQL execution plan"; ⑥Has  a powerful SQL "execution plan" function, you only need to "tool" - Option "SQL execution plan connection automatic recovery" in the "Options" window is set to "checked" state, then even if the database server is down during the "SQL execution plan", as long as the database server is in the "SQL execution plan" moment. Process the startup status, then the "SQL execution plan" will be executed; ⑦  Allow users to customize the field separator and line terminator in the export file;   6 . The 03 version is fully compatible with any Microsoft Windows operating system series, including Windows 10, Windows 8, Windows 7, Windows Vista, Windows 2003, Windows XP, Windows 2000, Windows NT, Windows ME, Windows 9X, and can be directly on the Windows operating system run without changing any operating system settings or configuration.

The DB  Query Analyzer has been downloaded more than 120,000 times in Zhongguancun Online ( http://xiazai.zol.com.cn/detail/27/264455.shtml )  , ranking the top 10 in the database rankings . 

 

In "Programmer" 2007 No. 2 "New Products & Tools Review" section, the editor "specially recommended" the release of "Universal Database Query Analyzer".

I also wrote 89 articles in Chinese and English about the technology of "Universal Database Query Analyzer", which were published in "Computer Programming Skills and Maintenance", "Software", "Computer Times", "Computer Programming Skills and Maintenance", Baidu On the library, CSDN resources, and my four blogs ( CSDN blog, Sina blog, Qzone and Sohu blog).

This article will take the Chinese version of DB Query Analyzer version 7.01 as an example, to introduce in detail the newly added recordsets returned by multiple executed SQL statements are saved to multiple files, and the user-defined fields in the export file when the execution result is saved to the file. Separator and line terminator.

 
 

Configuration options: save the execution results of multiple SQL statements to multiple files   

DB  Query Analyzer version 7.01 also adds the function of "save execution results to multiple files". When it is not selected, the result set returned by the executed SQL command set is all saved to a file specified by the user; if this option is selected , if multiple SQL command sets that return recordsets are executed, the result returned by the first SQL command is saved to the file specified by the user, and the others are saved to Result2, Result3 and other files, and the file extension is the same as that of the first SQL command. Statements save result files with the same extension. Once this option is changed, it will take effect immediately. It is valid for displaying the result in "text mode" and saving the result to a file.


Figure 1 Click "Tools -> Options" in the main menu to open the "Options" window, select Save execution results to multiple files

 
 

Set the field separator and line separator of the exported file 

   DB  Query Analyzer version 7.01 adds the function of setting the field separator. When generating the result data, the user is allowed to select the field separator as Tab, comma, |%| or user-defined. Once this option is changed, it will take effect immediately. It is valid for displaying the result in "text mode" and saving the result to a file.

DB  Query Analyzer version 7.01 also adds the function of setting line terminators, allowing users to choose line terminators as \r\n, \n, \r, etc. or define them by themselves. Once this option is changed, it will take effect immediately, but it is only valid for saving the result to a file.

 


Figure 2 Click "Tools -> Options" in the main menu, set the field separator to "|%|", set the line terminator to a semicolon, and select the option "Save execution results to multiple files"

 

 
 

Execute multiple SQL statements and save the results to multiple files 

   DB  Query Analyzer version 7.01 adds the function of setting the field separator. When generating the result data, the user is allowed to select the field separator as Tab, comma, |%| or user-defined. Once this option is changed, it will take effect immediately. It is valid for displaying the result in "text mode" and saving the result to a file.

 


Figure 3 There are no files in the directory where you want to save multiple files





Figure 4 6 groups of SQL statements to be executed





Figure 5 Set the menu item "Query -> Display Results -> Save Results to File", then F5 executes the SQL statement, select the directory and enter the file name to be saved in the first statement tb_road_4402.txt





图6  6组SQL语句执行完成,结果保存到tb_road_4402.txt、result02.txt、…、result06.txt





图7  用Window 资源管理器来查看目录“保存执行结果到多个文件”,已经生成了6个文件

 



图8  用UltraEdit打开tb_road_4402.txt,可以看到字段分隔符为“|%|”,行分隔符为“;”

 

 

5  结束语

   今天只是举例来介绍一下“万能数据库查询分析器”在工作中的应用,其实“万能数据库查询分析器”还有许多操作技巧,在实际使用中同事们都在享受这一工具。

本人也撰写关于“万能数据库查询分析器”的89 篇中文、英文的技术文章来介绍它的强大功能,这些文章及下载链接详见本人的CSDN博客:http://blog.csdn.net/magenfeng

因为“万能数据库查询分析器”安装时不需要任何插件与虚拟环境,并且完全兼容任何MicrosoftWindows操作系统系列,包括最新的Windows 10,所以安装在资金结算中心的Windows各版本操作系统上,因为其强大的功能、友好的操作界面、良好的操作性、跨不同的数据库平台,它为数据库应用的开发者提供更方便、快捷的支持,在联合电服资金结算中心得到了广泛地使用与好评。

 



6   本人撰写的关于“万能数据库查询分析器”的89篇技术文章  

 

目前以下7篇文章发布几个国内计算机刊物上:

[1] 马根峰· 基于数据仓库的广东省高速公路一张网过渡期通行数据及异常分析系统 · 杭州:《计算机时代》,2015年第7

[2] 马根峰· DB QueryAnalyzer中断SQL语句的执行 · 杭州:《计算机时代》,2011年第12

[3] 马根峰· DB查询分析器 批量执行DML语句并返回更详细的信息 · 北京:《电脑编程技巧与维护》,2011年第24

[4] 马根峰· DBQuery Analyzer中的事务管理在DB2中的应用 · 北京:《电脑编程技巧与维护》,2011年第22

[5] 马根峰· DB查询分析器中断SQL语句的执行· 天津:《软件》,2011年第6

[6] 马根峰· 万能数据库查询分析器中的事务管理在Oracle中的应用 · 上海:《微型电脑应用》,2011年第11

    [7] 马根峰 · 新产品&工具点评 特别推荐:“万能数据库查询分析器”发布 · 程序员,20072

 

以下82篇文章发布在百度文库、CSDN资源、和本人的四大博客上:

《万能数据库查询分析器使用技巧之(一)》直到《万能数据库查询分析器使用技巧之(十六)》共16

《The 1st tip ofDB Query Analyze》到《The 16th skills of DB Query Analyzer》16

如何在客户端配置ODBC来访问远程DB2 for Windows服务器》

How to configure ODBC DSN in Client toaccess remote DB2 for Windows

《如何在服务器上配置ODBC来访问本机DB2 forWindows服务器》

How to configure ODBC DSN to access localDB2 for Windows

《软件开发顶尖高手的杀手锏SQL语句》

Which SQL statement is the trump card tothe senior software developer

DB 查询分析器批量执行DML语句并返回更详细的信息》

《用“万能数据库查询分析器”测试SQLite4SQL精髓语句的支持》

《用“DB查询分析器”的对象浏览器来展现数据库的数据字典》

《万能数据库查询分析器用户已基本涵盖当前所有数据库系统》

The DBMS that DB Query Analyzer Users oftenuse cover all kinds of DBMS

《查询分析器应必须具备的功能-中断查询的执行》

《万能数据库查询分析器的EXE文件加壳技术》

Exe packer prevent DB Query Analyzer frombeing debugged

《自己开发的“万能数据库查询分析器”终于有了较大的成果》

DB Query Analyzer中断SQL语句的执行

DB 查询分析器 批量执行DML语句并返回更详细的信息

DB Query Analyzer中的事务管理在DB2中的应用

DB 查询分析器中断SQL语句的执行

万能数据库查询分析器中的事务管理在Oracle中的应用

特别推荐:“万能数据库查询分析器”发布》

《软件开发高手须掌握的4SQL精髓语句(一)》

《软件开发高手须掌握的4SQL精髓语句(二)》

《软件开发高手须掌握的4SQL精髓语句(三)》

《软件开发高手须掌握的4SQL精髓语句(四)》

《软件开发高手须掌握的4SQL精髓语句(综合篇)》

《巅峰之作----“万能数据库查询分析器”5.01发布》

《万能数据库查询分析器与EXCEL强强联合进行数据分析》

DB 查询分析器批量执行多条SQL语句并查看各自的执行时间》

DB查询分析器访问EXCEL时,要在表名前后加上中括弧或双引号》

The table name must be enclosed in double quotation marks or squarebracket while accessing EXCEL by DB Query Analyzer

《如何使用ZOL一键安装器下载中关村在线的源安装包》

How to download the installation package byZOL Downer

DB 查询分析器 6.03 ,遨游于任何Windows操作系统之上的最优秀的数据库客户端工具》

DB Query Analyzer, the mostexcellent Universal database Access tools on any Microsoft Windows OS 

DB 查询分析器 6.03 Windows 8.1上安装与运行演示》

Demonstration of DB QueryAnalyzer 6.03 Installation and Running on Microsoft Windows 8 

DB 查询分析器 6.03 如何灵活、快捷地操作国产达梦数据库》

DB 查询分析器 6.03 方便地创建DB2自定义函数》

How to easily create DB2 user function byDB Query Analyzer 6.03 

DB 查询分析器 7.01 Windows 10 上的安装与运行展示》

Install and run DB Query Analyzer 7.01 on MicrosoftWindows 10

 《通用固定长度编码格式的字符串查找算法的实现》

A universal function of searchingfixed-length coded string in a string field

《如何使用 DB 查询分析器高效地生成旬报货运量数据》

How to generate the complex data regularlyto Ministry of Transport of P.R.C by DB Query Analyzer

DB 查询分析器7.01新增的周、月SQL执行计划功能》

The new powerful function SQL executingschedule monthly or weekly in DB Query Analyzer 7.01

DB 查询分析器7.01 新增的保存执行结果到多个文件功能》

Save results to different files whenexecuting multi SQL statements in DB Query Analyzer 7.01

 

 

 


关于我

      马根峰本人的微信公众号:

      万能数据库查询分析器

马根峰的博客:

CSDN博客:http://blog.csdn.net/magenfeng

新浪博客:  http://blog.sina.com.cn/magenfeng

官方网址:   http://www.unitedpowersoft.cn/


     更多精彩文章,技术分享,敬请期待




Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325854626&siteId=291194637