Working with SQL
Tips on creating databases, creating SQL queries using Alpha Anywhere's Portable SQL Syntax, using the SQL command window, and more.
- About SQL
The language that you use to talk to an AlphaDAO back-end database is SQL. The two most common types of SQL commands that you will want to send to your database are commands that returns a set of records (do not confuse the use of the word "set" here with Alpha Anywhere's Set object) and commands that update, delete, or insert records into the database.
- Supported Portable SQL Syntax
The SQL syntax that the Alpha Anywhere Enterprise Edition and Application Server supports is first constrained by the SQL syntax supported by the target database. The Application Server has additional requirements. The following is a simplified SQL grammar syntax as supported by the Alpha Anywhere Portable SQL parser. Support for these constructs depends on the target database and its implementation of SQL. The grammar that follows shows the components of the grammar in the general format:
- Define an AlphaDAO SQL Query
Step by step instructions for defining an SQL Query, from establishing a connection to retrieving data.
- Using the SQL Genie
The SQL Genie helps you write SQL expressions. This page contains some pointers on how to use it.
- SQL Command Window
The SQL Command Window provides a mechanism for testing SQL statements. There are several ways to open the SQL Command Window:
- Importing Data Into Alpha Anywhere
How to use ODBC to access different data sources and use them in Alpha Anywhere.
- Create Snapshots
Creating databases and table snapshots.
- Updating Records in a Back-End Database
A look at how to update records using SQL UPDATE.
- Define SQL Statement Dialog
The ADO Import Genie uses the Define SQL Statement dialog to create SQL SELECT statements.
- Creating a SQLite Database
The SQLite Database genie can be used to create a SQLite Database for your application.