in reply to Re: Re: DBI bind params & column defaults
in thread DBI bind params & column defaults
Well, in general if a field is given the NULL value (which will be inserted if the given value for a placeholder is undef), then the database decides what to do with it. Usually it will just be marked as NULL in the database (as in: not having any value). Sometimes you can specify a default value when you create the table. Sometimes something special happens (e.g. with a TIMESTAMP field in MySQL).INSERT INTO table (id,type) VALUES ( id, COALESCE(?,defaulttypevalue) )
Liz
|
|---|