Error during execution SQL Queries
Posted: 11.01.2008, 02:24
Hi all,
I have installed Mysql 5 server on localhost and C++ Builder 6 as programming environment.The database is named 'test', the table is named 'tasks'. Table 'tasks' has 3 fields: id, city and zip-code.
I want to build a simple sql application.
I placed on form the following components:
ZConnection, ZTable, DataSource and DBGrid.
I have the following components on my BCB:
[web]http://sourceforge.net/dbimage.php?id=95426[/web]
and Button component with the following OnClick action:
During executing the action, I get a message
PS. When I placed ZQuery and the query was "SHOW COLUMNS FROM tasks" that was OK, DBGrid showed all column.
Thanks for help.
Regards
I have installed Mysql 5 server on localhost and C++ Builder 6 as programming environment.The database is named 'test', the table is named 'tasks'. Table 'tasks' has 3 fields: id, city and zip-code.
I want to build a simple sql application.
I placed on form the following components:
ZConnection, ZTable, DataSource and DBGrid.
I have the following components on my BCB:
[web]http://sourceforge.net/dbimage.php?id=95426[/web]
and Button component with the following OnClick action:
The output data is redirecting on DBGrid component.ZConnection->Connect;
ZTable->Active = true;
During executing the action, I get a message
What I can to do?Column with name "Extra" was not found
PS. When I placed ZQuery and the query was "SHOW COLUMNS FROM tasks" that was OK, DBGrid showed all column.
Thanks for help.
Regards