AgileApps Support Wiki Pre Release

SQL Browser

From AgileApps Support Wiki
Revision as of 19:38, 15 December 2011 by imported>Aeric

Designer > Data > Objects > [SQL Browser]

The SQL Browser gives you a graphical interface that lets you enter a SQL query and view the results:

SQLBrowserSelect.png
How it works
  • The navigation pane on the left shows all of the Object tables in your database.
  • Clicking the arrow next to one expands the tree, showing the columns in the table
  • Double-clicking a table populates the statement pane with a default query (SELECT *) from that table.
  • To run the query, press Ctrl+Enter or click the triangle-button on the right.
SQLBrowserGoButton.png

Notepad.png

Note:
When you make a SQL query, you are not querying the platform database directly. Rather, you are querying a view of the database that is restricted by your role permissions, so the records and fields you can see using SQL are the same as those you see when using the GUI. In addition, the platform implements various safeguards to prevent SQL Injection attacks.

Considerations
  • SQL syntax is not case-sensitive, except for table names and field names.
  • Backticks are (`) are needed around any table name in the SQL expression that is one of the SQL Reserved Words.
For example:
SELECT * FROM `ORDER`
Without the backticks, you get an error like this:
Encountered "Order", was expecting one of (...
That error means that the parser found a word it recognized, but didn't find other things it expected before it got to that word.

Learn more: SQL Syntax