Dragging operations from the Data Source Explorer view and dropping them in the SQL Editor allows you to create SQL statements quickly by inserting the names of tables and columns in the SQL statements.
Drag and drop actions are available both on the table and on its fields. A pop-up menu is displayed in the SQL editor.
Depending on your choice, dragging a table results in one of the following statements being inserted into the document:
SELECT `DEPT`,`DEPTNAME`,`LOCATION` FROM
`camera`.`cameraDesc`)UPDATE
`camera`.`cameraDesc` SET `DEPT`=, `DEPTNAME`=, `LOCATION`=)INSERT INTO
`camera`.`cameraDesc` (`DEPT`,`DEPTNAME`,`LOCATION`) VALUES (, , ))DELETE
FROM `camera`.`cameraDesc`)Depending on your choice, dragging a column results in one of the following statements being inserted into the document:
SELECT `DEPT` FROM `camera`.`cameraDesc` )UPDATE `camera`.`cameraDesc` SET `DEPT`=)INSERT INTO `camera`.`cameraDesc` (`DEPT`) VALUES ())DELETE
FROM `camera`.`cameraDesc` WHERE `DEPT`=)