Tools - SQL Query WizardThis wizard allows you to quickly create a simple SQL query to retrieve data from a single table. The tool has a user-friendly interface that guides you by the hand through all the steps of creating an SQL query - from selecting the fields of the table from which you want to retrieve data, to specifying the conditions that must be met, to determining the order in which the records will be returned. Each step is a separate page. You can navigate through the boards using the Next and Back buttons. LaunchingYou can run the wizard with the command located in the pop-up menu for the table on the tree in the MySQL Inspector tab. The command icon is shown next to it. The second place from which you can open the SQL Query Wizard is the Create Database Query page in the Database Export Wizard. Table selectionThe first page allows you to select the table and its fields that will be added to the query. Table Fields ConditionsThis page provides options for specifying the conditions that the returned records must meet. Select one of the options: include all records only include records that meet the condition: If you choose the second option, the text box for entering conditions (the section after the WHERE word in the SQL query) will become active, as well as the elements that facilitate their creation (their use inserts the appropriate word in the place of the cursor in the query field): Insert field name: Insert operator Comparisons Mathematical Strings Date and time Specifying the sort order of recordsThe next page allows you to specify record sorting for up to three fields. For this purpose, there are three drop-down lists with the names of the fields taken from the database:
Under each of the lists there are switches for sort order (ascending or descending). Other query options EndThe last page is a summary. It contains a text box displaying the finished query. In addition, you can use the Add Query to Favorites button, so you can save the built query for later reuse (a button to use one of the "Favorite Queries" can be found on the MySQL Inspector tab on the button bar next to the list of table contents). The last action to perform is to click Finish, which will execute the query and close the Wizard. The results of the Wizard will be displayed in the table contents list at the bottom of the MySQL Inspector tab. |
Related topics |