Aqua Data Studio's Query Window - SQL Automation menus rapidly increase the speed of writing a query. Automate is the fifth menu (from left to right) in the Main Application Window.
The SQL Automation feature set in Aqua Data Studio (the "Automate" pull-down menu) helps you reduce the number of keystrokes made while writing SQL statements, and to let the application rapidly fill in what a user would normally spend seconds or minutes typing.
The largest amount of time spent typing is probably writing templates for basic SELECT, INSERT and UPDATE statements, including writing out the columns.
Below are examples of how to automate the writing of basic UPDATE and SELECT statements.
Automating an UPDATE statement
|
|
|
|
|
| 1. Click Automate insert UPDATE | 2. Select the Table | 3. Move the Cursor | 4. Column names without typing | 5. Finish the SQL Statement |
Automating a SELECT statement
|
|
|
| 1. Click Automate insert SELECT | 2. Select the Table | 3. Finish the SQL Statement |
Automate INSERT
INSERT INTO () VALUES()INSERT INTO ^() VALUES() locationINSERT INTO MYTABLE(^) VALUES()INSERT INTO MYTABLE(COLUMN1, COLUMN2, ...) VALUES(^)INSERT INTO MYTABLE(COLUMN1, COLUMN2, ...) VALUES(’’, 0, ...)Automate UPDATE
UPDATE SET WHEREUPDATE ^ SET WHERE locationc. Popup a list of tables for auto-completion of the table name you want to UPDATEUPDATE MYTABLE SET ^ WHEREUPDATE MYTABLE SET EMPLOYEEID=0, NAME=’’, SALARY=0, TITLE=0, CREATEDDATE=’2002-12-30 23:59:59.0’ WHEREAutomate SELECT
SELECT * FROM WHERESELECT * FROM ^ WHERESELECT ^* FROM MYTABLE WHERESELECT EMPLOYEEID, NAME, SALARY, TITLE, CREATEDDATE FROM MYTABLE WHERE