|
|
|
|
|
- Running the query
- Retrieving the query result
- INSERT query
- Managing text memos
- Managing binary memos
- SQL query (SQLExec or queries created in the query editor)
- Comparison with the syntax of HExecuteSQLQuery
- SQLExec and threads
- Limitations in PHP
SQLExec (Function) In french: SQLExec Names and runs an SQL query. Caution: The SQLExec function does not start the memory result retrieval process.. The result is retrieved on the first call to one of the following functions: SQLFirst, SQLTable or SQLFetch. Note: To handle a binary memo in a query, use the keyword WDMemoBinary in your query text (for more details, see remarks). Syntax
Running an SQL query Hide the details
<Result> = SQLExec(<SQL query text> , <Query name>)
<Result>: Boolean - True if the query was executed,
- False otherwise. If the query was not run, the error message can be returned by the SQL.MesError variable once SQLInfo has been run.
<SQL query text>: Character string SQL code of query to run. <Query name>: Character string Name associated with the query text. Corresponds to:- the logical query name.
- the name and full path of query (".WDR" file).
Remarks Running the query The information regarding the query execution is returned by SQLInfo. The SQL.NbCol variable contains the number of columns found in the query result. Once it was run and processed, the query must be freed by SQLClose. Retrieving the query result Then, the query result can be: - Transferred into a table or into a list box (SQLTable).
- Transferred into controls or variables (SQLAssociate).
- Retrieved line by line (SQLFetch).
SQLExec and threads When executing the SQLExec function in a secondary thread, the connection used must be made in the same thread: the connection cannot be made in the main the thread (project or window).. The connection established by SQLConnect is not shared in the other threads.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|