![]() | Products |
| Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 Manual for RAD Studio XE (Delphi) » Using ElevateDB » Querying Database Objects |
// This example uses a query component that
// has already been created and opened
// called MyQuery
with MyQuery do
begin
DatabaseName:='SalesDB';
SQL:='SELECT * FROM Information.Tables '+
'WHERE Name='+Engine.QuotedSQLStr('Customer');
Open;
if (RecordCount=1) then
ShowMessage('The Customer table exists')
else
ShowMessage('The Customer table does not exist');
end;// This example uses a database component that
// has already been created and opened
// called MyDatabase
with MyDatabase do
begin
if (Execute('SELECT * FROM Information.Tables '+
'WHERE Name='+Engine.QuotedSQLStr('Customer'))=1) then
ShowMessage('The Customer table exists')
else
ShowMessage('The Customer table does not exist');
end;This web page was last updated on Tuesday, September 16, 2025 at 04:56 PM | Privacy Policy © 2026 Elevate Software, Inc. All Rights Reserved Questions or comments ? |

