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 Query Builder
Discussion
The SQL_QUERY_BUILDER() displays the SQL Genie, which assists you in defining a SQL SELECT statement.
Example
The Xbasic statements shown below displayed the SQL Genie, which returned the statement assigned to the sql variable.
dim cn as sql::connection cn.open("{A5API=Access,FileName='C:\Databases\Northwind\northwind.mdb',UserName='Admin'}") sql = sql_query_builder(cn) ? sql = SELECT CompanyName, ContactName FROM Customers WHERE (Country = 'USA')
See Also