|
|
导航: |
论坛 -> DELPHI技术
斑竹:liumazi,sephil |
|
作者: |
|
2004/3/29 19:57:20 |
标题: |
各位大哥,用 tadoquery 好一些,还是用记录集 |
浏览:1011 |
|
加入我的收藏 |
楼主: |
请问: 在用delphi进行数据库编程时,是使用 tadoquery 好一些,还是用记录集 adodb._recordset 好一些 var xx:adodb._recordset; begin xx:=adoconnection1.execute('execute 存储过程'); end;
他们在性能上有区别吗?
还有在什么情况下用 adoquery.execute ?
在什么情况下用 adoquery.open ?
非常感谢!
----------------------------------------------
lsh |
作者: |
|
2004/3/29 20:16:00 |
1楼: |
选择上可以根据个人爱好和习惯 当你需要返回记录集时用execute 不返回时用open 不能确定时 try open; except execute; end;
----------------------------------------------
我来自农村广阔的田野我的每一个动作都很夸张http://waterstone.51r.com
|
作者: |
|
2004/3/29 21:07:21 |
2楼: |
waterstone: 谢谢!
----------------------------------------------
lsh
|
|