MySQL Forums
Forum List  »  Perl

can not insert into table using perl/DBI to InnoDB type database
Posted by: Haifang Wang
Date: June 18, 2010 11:07PM

Dear Support Team,
Now I am using Perl/DBI to interface with mysql database, and my all my tables were created using engine=InnoDB. I can not insert data using the following script in perl:
my $sql1=qq{insert into gene values (null,"1000","testing")};
$dbh->do($sql1);

PS: the first line of table gene is auto-increment.

Options: ReplyQuote


Subject
Written By
Posted
can not insert into table using perl/DBI to InnoDB type database
June 18, 2010 11:07PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.