zoukankan      html  css  js  c++  java
  • The 8th tip of SQL design by DB Query Analyzer

     

    The 8th tip of SQL design by DB Query Analyzer

                                               MA Gen-feng  

                ( GuangDong Unitoll Services incorporated, GuangZhou 510300)

     

    My blogs are

    http://blog.csdn.net/magenfeng

    http://blog.sina.com.cn/magenfeng

    http://user.qzone.qq.com/630414817

     

     

     

          Brief introduction of DB Query Analzyer  

           DB Query Analyzer is presented by Master Gen feng, Ma from Chinese mainland. It has English version and Simplified Chinese version.

           After four years research, design, development and about three months integrated test based on Oracle, Sybase, DB2, Informix, MS SQL Server, Mysql, MS ACCESS, FoxPro and Paradox, DB Query Analyzer is presented to the world In 2007. From then on, The continuous improvement of function or interface has been done. Now the latest version is 3.02.

           By now it has been downloaded about ninety thousand times in the famous software download websitehttp://xiazai.zol.com.cn/. It is one of the twenty most frequently download software.

           In the New products & Tools reviews of programmer second issue of 2007, DB Query Analyzer had been strongly recommended.

           By November 9, 2009 ,you would get 1500 thousand result with the key word ‘DB Query Aanlyzer’ in Google. In Baidu you would get 40 thousand result.

           Out of question, DB Query Analyzer is one of the few excellent Client Tools in the world for its’ powerful function, friendly interface, easy operation and applicability to every production of RDBMS.

     

     

     

           Preface

           In DB Query Analyzer 3.02, it allows users to define the restrict character among single quotation marks, double quotation marks and none. If you reset it in the config window, the query result will take effect in all the opened windows right now. However, If you reset the separator between SQL, it will take effect in the new opened SQL edit window.

           I will show you how to program SQL quickly by DB Query Analyzer 3.02.

     

           OS :  WIN7

           Database system : MS ACCES 2008

           Client tool : DB Query Analyzer 3.02.

     

     

     

          Create the DSN based on MS ACCESS

           Run DB Query Analyzer 3.02 first, then click the sub menu ‘ODBC Data Source Management’ of menu ‘Tools(s)’ to create DSN four_stations based on MS ACCESS.

          This is shown in Figure 1.

     

     

                                   Figure 1   create DSN four_stations based on MS ACCESS

     

           Click ‘File’ menu to choose ‘Connect’ to connect to the ODBC DSN four_stations.

     

     

     

       How to generate the familiar SQL statement, such as Select all rows

           Three types of SQL statemnet can be generate automatically by DB Query Analyzer, such as Select all rows ,select Top N records and get record count.

           After right-click table tb_manualoutlist and click the item Select All Rows. The SQL script will be generated automatically.

           If you press F5 or click Run submenu of Query menu, you can get the result as figure below.

     

     

                               Figure 2   Fetching all records of table tb_manualoutlist by Object View

     

           The default Char Fields Seperator is none which means nary a character will be added to the char fields.

     

     

     

       How to generate the SQL statement to fetch certain record

           How to fetch records that listno are these bellow ?

    ListNo

    12036101152002040002

    12036101152002040003

    12036101152002040004

     

     
                                 Figure 3   the destination listno to query

     

          In DB Query Analyzer 3.02, you can set single quotation marks as Char Fields Seperator. Then it’s very convenient to design SQL statemnet.

           Click tools menu, then click configurations. Select single quotation marks in the drop-down list box.

           This is shown in Figure 4.

     

     

                                    Figure 4   set single quotation marks as Char Fields Seperator

     

          Execute the SQLstatement then you get the result as Figure 5 .

     

     

                              Figure 5   Execute the SQL statement after define Char Fields Seperator

     

           In the result grid, you can copy those target listno to clipboard. Here is how:

    Press down the left button of the mouse in the cell which listno is '12036101152002040002' and then drag to the listno ‘12036101152002040004’. Click “Ctrl+C”to copy those listno, then Press the right button of mouse in the blank area in SQL edit area to select paste in the popup menu or click “Ctrl+V”to paste them.

          This is shown in Figure 6.

     

     

                                       Figure 6   Paste the destination listno from clipboard

     

           Now, you can finish the SQL Statement like bellow easily.

     

     

                                      Figure 7   Execute the SQL statement

     

     

     

       DB Query Analyzer shows how many rows are affected

           Compared with quite a few Database System including some large Database System. DB Query Analyzer can shows you how many records are affected. This is a very useful in database maintance or database management.

           From Figure 8 to Figure 10 show you this function in DB Query Analyzer.

     

     

                               Figure 8   Query the record before be updated

     

     

                               Figure 9   update the record

     

     


                               Figure 10   Query the record After be updated

     

     

     
     

     

    DB Query Analyzer 5.03 download URL:
    http://xiazai.zol.com.cn/detail/43/420901.shtml
    http://www.unitedpowersoft.com/UpFile/DBQueryAnalyzer_English_503.rar
     

     

    DB Query Analyzer Simplified Chinese version 5.03  download URL:
    http://xiazai.zol.com.cn/detail/27/264455.shtml
     
     

     

    Remarks :

           Please uninstall the former version first, then install the latest version.

     

     

  • 相关阅读:
    JVM运行参数
    JVM学习
    自己瞎写的小项目随笔
    git入门
    @ResponseBody 注释
    jquery 正则表达式 验证邮箱 手机号 座机号 身份证
    ORACLE计算一年的12个月份
    css 图片 文字居中
    Jquery 取值相关
    标题栏下拉菜单
  • 原文地址:https://www.cnblogs.com/wuyida/p/6300786.html
Copyright © 2011-2022 走看看