MySQL Forums
Forum List  »  Perl

Re: fetch a problem to insert values in perl programming
Posted by: Felix Geerinckx
Date: May 19, 2005 12:52AM

arupratan biswas wrote:

> when i execute my programm linux then give error just like that
> DBD::mysql::st execute failed:Column 'emp_id' can not be null at line 44

Well that's obvious, isn't it: the $emp_id variable you get back from your form doesn't have a value.

> 'emp_id' is primary key in my database.

I don't think it's wise to let a user pick a primary key. Why don't you use an AUTO_INCREMENT?

Please use BBCode to format your messages in this forum.

Options: ReplyQuote

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.