DataSource With DML sql Statement

instead of using the Datasource property AddNew,Delete,Update.can i supply the insert,update or delete sql statement to Datasource control ?
qwertyuiopasdfghjklAsked:
Who is Participating?
 
dwwangCommented:
Sorry for the delay, you can apply any kind of SQL statements to a tquery, for example, a DML statement:

myQuery.SQL.Text:='insert into mytable values(fieldsval1,fieldval2,...)'
0
 
dwwangCommented:
You can only apply SQL statement to TQuery component.
0
 
qwertyuiopasdfghjklAuthor Commented:
yes....then can i apply DML to Tquery ?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.