Home arrow Delphi-Kylix arrow Page 2 - The ADOQuery Component
DELPHI-KYLIX

The ADOQuery Component


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.

Author Info:
By: Jacques Noah
Rating: 5 stars5 stars5 stars5 stars5 stars / 6
October 09, 2006
TABLE OF CONTENTS:
  1. · The ADOQuery Component
  2. · ADOQuery Component
  3. · A Practical Example
  4. · Dynamic Queries

print this article
SEARCH DEVARTICLES

TOOLS YOU CAN USE

advertisement
The ADOQuery Component - ADOQuery Component
(Page 2 of 4 )

The ADOQuery component helps database application developers to fetch information from single/multiple tables in an ADO database though the use of SQL.

There are two kinds of SQL statements:

DDL (Data Definition Language): these include CREATE TABLE and ALTER INDEX.

DML (Data Manipulation Language): these include SELECT, UPDATE and DELETE.

The most common statement, however, is the SELECT statement, which produces a view similar to what we have seen when using the Table component in my previous article. The SQL that you use here must be compatible with the ADO driver. This is because there are differences between how you write SQL statements in MySQL/MSSQL and Access. The differences are not that difficult to overcome if you’ve been working with SQL before.

As with the ADO Table component, you access a database through the connection string. In this article I’m not going to use any database aware components, so using a datasource component will not be necessary. The Query component does not have a TableName property, like the ADO Table component.


blog comments powered by Disqus
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...

Dev Articles Forums 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Weekly Newsletter
 
Developer Updates  
Free Website Content 
Contact Us 
Site Map 
Privacy Policy 
Support 



© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap
Popular Web Development Topics
All Web Development Tutorials