Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » ElevateDB Technical Support » Product Manuals » ElevateDB Version 2 Manual for RAD Studio XE8 (C++ Win32) » Using ElevateDB » Querying Database Objects |
// This example uses a query component that // has already been created and opened // called MyQuery MyQuery->DatabaseName="SalesDB"; MyQuery->SQL="SELECT * FROM Information.Tables "+ "WHERE Name="+Engine->QuotedSQLStr("Customer"); MyQuery->Open(); if (RecordCount==1) { ShowMessage("The Customer table exists"); } else { ShowMessage("The Customer table does not exist"); };
// This example uses a database component that // has already been created and opened // called MyDatabase if (MyDatabase->Execute("SELECT * FROM Information.Tables "+ "WHERE Name="+Engine->QuotedSQLStr("Customer"))==1) { ShowMessage("The Customer table exists"); } else { ShowMessage("The Customer table does not exist"); };
This web page was last updated on Thursday, November 16, 2023 at 10:39 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |