Delphi-Kylix
  Home arrow Delphi-Kylix arrow The ADOQuery Component
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
DELPHI-KYLIX

The ADOQuery Component
By: Jacques Noah
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 3
    2006-10-09

    Table of Contents:
  • The ADOQuery Component
  • ADOQuery Component
  • A Practical Example
  • Dynamic Queries

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    The ADOQuery Component


    (Page 1 of 4 )

    In the previous article, we discussed how to use the ADO components and we created an example program using an ADOTable component. In this article we are going to discuss the ADOQuery component and how it can help us deal with data manipulation in an ADO database.

    Introduction

    SQL is an acronym for Structured Query Language. It is a language that is used to interrogate a database. SQL gives us the flexibility to retrieve information in a variety of ways from a database. It takes the form of a command language that lets you select, insert, update and find the location of data, and so forth.

    ADOQuery has a SQL property (as you will see later on in the article) that is used to store SQL statements. Queries can be divided into two categories: those that produce results, such as the SELECT statement, and those that don’t such as the DELETE or INSERT statements. They are also executed in different ways:

    • Query.open is used to execute those that produce results.
    • Query.execSQL is used to execute those that don’t produce results.

    The SQL statements can be either static or dynamic, that is, they can be set at design time or include parameters (Query.Params) that vary at run time. Using parameterized queries is very flexible, because you can change a user's view of and access to data on the fly at run time. This gives you more flexibility to retrieve only the exact data that you require, instead of everything in the database, such as when using an ADOTable component. It is also worth mentioning that you can do everything that an ADOTable does and more with an ADOQuery dataset.

    More Delphi-Kylix Articles
    More By Jacques Noah


       · I hope you found my article educational; I welcome your comments.
       · I have read through your articles.It's helpful since i'm new to Delphi.But I found...
     

    DELPHI-KYLIX ARTICLES

    - Loading an XML Document into the DOM
    - Delphi Wrapper Classes and XML
    - Delphi and the DOM
    - Delphi and XML
    - Internet Access: Client Service
    - Finishing the Client for an Internet Access ...
    - The Client for an Internet Access Control Ap...
    - User Management for an Internet Access Contr...
    - Important Procedures for an Internet Access ...
    - Server Code for an Internet Access Control A...
    - Constructing the Interface for an Internet A...
    - Building a Server Application for an Interne...
    - Building an Internet Access Control Applicat...
    - Client Dataset: Working with Data Packets an...
    - Using the Client Dataset in an N-Tiered Appl...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT