insert null into an integer column using dbi/mysql
- From: roch77@xxxxxxxxx
- Date: 5 Oct 2006 13:13:06 -0700
Hi,
This must be simple, but I don't know why I can't get this to work.
Lets say I have a variable $foo.
I want to assign $foo a null value, so that when I type :
insert into table values($foo);
I will get a NULL in the column. The column happens to be of type
TINYINT unsigned (and takes nulls).
I tried $foo=''; (2 single quotes without a space) but after a warning
it puts in a 0 not NULL.
Thanks a lot,
Roshan
.
- Follow-Ups:
- Re: insert null into an integer column using dbi/mysql
- From: Mark Harris
- Re: insert null into an integer column using dbi/mysql
- Prev by Date: Re: swap_inner_handle
- Next by Date: Re: swap_inner_handle
- Previous by thread: swap_inner_handle
- Next by thread: Re: insert null into an integer column using dbi/mysql
- Index(es):
Relevant Pages
|
|