Executing SQL statements with solidDB SQL Editor (solsql)
To execute SQL statements with solidDB SQL Editor (solsql), the statements must be terminated by a semicolon (;). Remember to commit work after each statement or before exiting solsql.
For example:
CREATE TABLE TESTTABLE (VALUE INTEGER, NAME VARCHAR); COMMIT WORK; INSERT INTO TESTTABLE (VALUE, NAME) VALUES (31, 'DUFFY DUCK'); SELECT VALUE, NAME FROM TESTTABLE; COMMIT WORK; DROP TABLE TESTTABLE; COMMIT WORK;
You can use parameter markers with solsql. When a statement that contains parameter markers is executed, solsql prompts for a value for each parameter. You must use this feature to perform write operations when you are using a solidDB grid, see Use dynamic parameter binding in statements.
Each parameter value must be terminated by a semicolon as shown in the following example: