Page 1 of 1

CREATE TABLE (Too many actual parameters)

Posted: Sun 19 Jun 2011 09:53
by SanyaXYZ
Hi,
I have Delphi 2010, MySQL 5.5, MyDAC trial
I use this code:

MyQuery1.ExecSQL('CREATE TABLE `Products` (`prod_id` CHAR (10) NOT NULL)');

ERROR "[DCC Error] Unit1.pas(42): E2034 Too many actual parameters"

Prompt syntax please :oops:

Re: CREATE TABLE (Too many actual parameters)

Posted: Sun 19 Jun 2011 14:01
by SanyaXYZ
SanyaXYZ wrote:Hi,
I have Delphi 2010, MySQL 5.5, MyDAC trial
I use this code:

MyQuery1.ExecSQL('CREATE TABLE `Products` (`prod_id` CHAR (10) NOT NULL)');

ERROR "[DCC Error] Unit1.pas(42): E2034 Too many actual parameters"

Prompt syntax please :oops:
MyQuery1.SQL.text:='CREATE TABLE `Products` (prod_id CHAR (10) NOT NULL)';
MyQuery1.ExecSQL;

Posted: Mon 20 Jun 2011 08:25
by AndreyZ
Hello,

It's good to see that you've found a solution. If any other questions come up, please contact us.