Reply to Re: Mysql - DEFAULT '' defined yet NULL inserted

Your name:

Reply:


Posted by reandeau on 06/26/06 15:13

Try doing a "DESCRIBE myTable;" and see what it gives you for the
"myUrl" field.


zorro wrote:
> Greetings,
>
> My database was inserting NULL for empty strings so I changed the field
> definition with this query:
>
> ALTER TABLE `myTable` CHANGE `myUrl` `myUrl` VARCHAR( 255 ) NOT NULL
> DEFAULT ''
>
> No error was reported following the query and yet I still get NULLs on
> insertions.
>
>
> Any ideas?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация