in reply to SQL through perl is giving error
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SQL through perl is giving error
by ksublondie (Friar) on Aug 31, 2011 at 21:50 UTC |