Does it have any different by using TmyCommand or TMyQuery to execute the update SQL statement in term of speedwise?
TMyCommand & TMyQuery
TMyCommand & TMyQuery
Hi,
Does it have any different by using TmyCommand or TMyQuery to execute the update SQL statement in term of speedwise?

Does it have any different by using TmyCommand or TMyQuery to execute the update SQL statement in term of speedwise?
-
Guest
Yes, I knew the TmyQuery return a result set but TmyCommand not.
But since TMyQuery also able to use drop, create, show, insert, update other's than only SELECT statement.
I mean since TmyQuery can handle both DDL or DML of SQL. So, what is the main purpose/recommendation we use TMyCommand somemore? Or the TMyQuery is the extension of TMyCommand?
But since TMyQuery also able to use drop, create, show, insert, update other's than only SELECT statement.
I mean since TmyQuery can handle both DDL or DML of SQL. So, what is the main purpose/recommendation we use TMyCommand somemore? Or the TMyQuery is the extension of TMyCommand?
TMyCommand has easier interface and a little bit faster execution. at the practise, if you place a new component to the form and know exactly that you will never use it for SELECT you should choose TMyCommand. As to performance, it greatly depends on hardware. Make a test for your conditions and you can get more exact answer.