Componentes.Terceros.RemObj.../internal/5.0.24.615/1/Data Abstract for Delphi/Samples/SQL Access/SQLAccess.Sample.html

36 lines
1.2 KiB
HTML

<html>
<head>
<link rel="stylesheet" type="text/css" href="..\styles.css">
</head>
<body>
<img src="..\..\da.png" alt="" align="right">
<!-------------------------------------------------------------------------->
<p class="h1">
<span>SQL Access Sample</span>
</p>
<h2>Purpose</h2>
<p>
This example treats two different SQL queries as if they are the same one.
One takes data from the SHIPPERS table and the other from the CUSTOMERS table. <br> The field mappings used when building the where clause isolate the developer from the SQL details and so allow the building of fairly complex where clauses without the need to do string concatenations in code.<br>
This sample also illustrates the use of various macro processors (TDAMSSQLMacroProcessor, TDAIBMacroProcessor, TDAOracleMacroProcessor, TDADBISAMMacroProcessor).
</p>
<h2>Examine the Code</h2>
<ul>
<li>
See the two SQL statements associated with the Customers dataset for the two connections for more details..
</li>
</ul>
<h2>Note</h2>
<p>
IMPORTANT: Keep in mind that the dataset's SQL property will always contain the statement you define and the dynamic WHERE clause only gets merged into it when opening the dataset.
</p>
</body>
</html>