Xbasic
SQL_QUERY_BUILDER Function
Syntax
SQL_Select_Statement as C = SQL_Query_Builder(P cn [,C SQLQuery ])
Arguments
- SQL_Select_Statement
A SQL SELECT statement that retrieves data from a back end database.
- cn
A SQL::Connection object created with the SQL::Connection::Open()method.
- SQLQuery
Character
Description
Displays the SQL Genie. For use in Desktop Applications.
Discussion
The SQL_QUERY_BUILDER() displays the SQL Genie dialog, which assists you in defining a SQL SELECT statement. This dialog can be used in Desktop apps or the Interactive Window to build SQL queries.
Example
The Xbasic statements shown below displayed the SQL Genie, which returned the statement assigned to the sql variable.
Interactive Window
dim cn as sql::connection cn.open("::Name::AADemo-Northwind") sql = sql_query_builder(cn) ? sql = SELECT CustomerID,CompanyName,Country FROM Customers
Limitations
Desktop Applications Only
See Also