This topic introduces how to edit and execute SQL window specifications.
Background information
After the system administrator grants a user the permission to operate on development specifications, the user can manage SQL window specifications on the
When a user executes an SQL statement in the SQL window, ODC checks the SQL statement against the configured SQL window specifications.
The example in this topic describes how to edit and enable a rule named
SELECT TABLE statement in the SQL window.
Execution process

The ODC system administrator enables SQL approval integration and sets the API information for accessing the external SQL approval system based on the configuration template provided by ODC, and creates the SQL approval integration configuration.
The ODC system administrator enables SQL approval integration on the SQL window specification tab.
An ODC user executes an SQL statement in the SQL window. ODC calls the API of the external SQL approval system to initiate an SQL check request.
Prerequisites
You have the development specifications operation permission.
Procedure
Log in to web ODC. In the project collaboration window, choose
Security Specifications >Environment >sit >SQL window specification .
As shown in the preceding figure, on the
SQL window specification tab, edit the rule namedSQL types allowed to be executed in SQL window .On the edit SQL check specification page, enable SQL types allowed to be executed in SQL window, click
OK .
In the project collaboration window, choose
Projects >All Projects > odc_4.3.x.
Click database name/SQL console/log in to database to log in to the database and go to the SQL development window.

In the SQL window, edit the SQL statement to query the
employeetable, and clickPress F8 to run all SQL statements in the current SQL window.
SELECT `emp_no`, `birthday`, `name` FROM `employee`;