Generate query statements according to the wizard
Find the database connection file "hr" in the object library of the rule package, then right-click on it and select "Generate query according to the wizard", as shown below:
The "Open" window will pop up, start looking for the dbs file, and click to open after finding it, as shown below:
A window will pop up, select "Department Information", and click "OK", as shown in the figure below:
In the pop-up window, check the department number and department name, and click "Next" to set the conditions. If no conditions are required, click "Finish". ”, as shown in the figure below:
Check the upper department number and click “Finish”, as shown in the figure below:
In this way, the query statement for querying the department number and name according to the department number is generated, and the display name in the pop-up window is changed to “Query according to the department number. Department Information", and then click "OK", as shown in the figure below:
After clicking OK, the query result set is also generated, click "Query Department Information by Department ID", and view the "Query Department Information Table Data by Department ID" menu item, a pop-up will appear. Form, the function of this form is to input conditions, enter 1 into the text box of department number, the display is as follows:
Click "OK", the display is as follows: