queries to mysql using c++ builder 2006

Hi, I have to make some queries to a mysql database using c++ builder 2006 because I have the select, but I need the insert, delete and update. The select syntax is:
TQuery * Q1 = new TQuery (DM-> DB1) / / Connection to the database
ASqlCmd.sprintf ( "select * from product");
If (SqlSelect (Q1, aSqlCmd)> 0) (
aProduct = Q1-> FieldByName ( "Product") -> AsString
aDescription = Q1-> FieldByName ( "description") -> AsString
StringGrid3-> Cells [0] [1] = aProduct;
StringGrid3-> Cells [1] [1] = aDescription;

My question is if I can help with this syntax for the insert, delete and update?, or that can otherwise make. Thank you very much
No.
Neither INSERT, DELETE, or UPDATE are queries, so you can't use a TQuery for any of them.

DISCLAIMER: I have never used MySQL, but I have used SQL in other languages (namely, Java and .NET), and they all used different objects for queries and modifications, AFAIK.
Topic archived. No new replies allowed.