Quote:
|
Originally Posted by healdem
the view is MySQL specific
its SQL not any thirdparty language like C/C++ or whatever
so you need to send it to the server as you woudl any other SQL statements
its a two step process..
first off create the view (can be done in C++, remember to use drop if exists)
then use the view as you would in any valid SQL statement
|
healdem, thanks.
I am new to MySQL. so I am not very clear about your solution.
When I queried a MySQL database, I had to use the following MySQL C API function
Code:
mysql_query("SELECT my_col FROM my_tbl") ;
in my C/C++ program. I wonder if there is any MySQL C API function to take
Code:
"create view viewname (x, y, ....) as select......." as argument.
Or, I can directly put the above create statement in my C/C++ program.
Thanks