Delphi / ADO:哪些组件? TADODataSet和TADOCommand或TADOQuery? [英] Delphi / ADO : WHich components? TADODataSet and TADOCommand or TADOQuery?
问题描述
根据 http://www.delphigroups.info/2/3/181838 .html
ADO
组件的首选方法是使用TADODataSet和
TADOCommand。为
兼容性提供TADOQuery(和TADOTable
和TADOStoredProc)。
The preferred approach with ADO components is to use TADODataSet and TADOCommand. TADOQuery (and TADOTable and TADOStoredProc) are provided for compatibility.
对于返回
result-sets和TADOCommand的SQL使用TADODataSet对于SQL
,不支持。
Use TADODataSet for SQL that returns result-sets and TADOCommand for SQL that does not.
我是一个无知的n00b - 谁要编码很多ADO的东西。上述声明是否正确?
I am a clueless n00b - who is about to code a lot of ADO stuff. Is the above statement correct?
P.s有没有任何好的开源Windows程序,让我可视化&探索我的数据库的内容?
P.s is there any good open source Windows program that will let me visualize & explore the contents of my databases?
哪些组件应该用于没有返回结果的东西?
Which components should I use for something which does/does not return a result?
推荐答案
该声明是正确的。 TADODataset和TADOCommand是与原生ADO对象的直接接口,并且可以执行其他三个所做的所有任务,这些任务存在以便于为BDE(Borland数据库引擎)编写的应用程序的移植应用程序,这意味着类似的接口 - 最终调用前两个。
That statement is correct. TADODataset and TADOCommand are direct interfaces to the native ADO objects, and can perform all the task made by the other three, which exist to ease porting application written for the BDE (Borland Database Engine), implmenting a similar interface - they end up calling the first two.
这篇关于Delphi / ADO:哪些组件? TADODataSet和TADOCommand或TADOQuery?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!