Since the database is complaining that you're trying to violate a NULL constraint, I'd guess that perhaps you're interpolating a variable into the statement, and the variable is undefined (e.g., perhaps you misspelled the variable name inside the query string or when you initialized it?) Something like:
$foobar = 17; $SQL = 'insert into kazam(col1) values ($fubar)'; $DB->do($SQL);
...roboticus
When your only tool is a hammer, all problems look like your thumb.
In reply to Re: SQL through perl is giving error
by roboticus
in thread SQL through perl is giving error
by ksublondie
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |