| List: | General Discussion | « Previous MessageNext Message » | |
| From: | Thimble Smith | Date: | July 22 1999 11:20pm |
| Subject: | Re: timestamp (before: auto_increment question) | ||
| View as plain text | |||
At 18:58, 19990722, Denis Voitenko wrote: >create table chat (who varchar(8), said varchar(255), time timestamp); > >and insert values like this: > >insert into chat values("Denis","Hello, everyone!",""); Whoa! "" is not the same as NULL! Not even close to being anything at all like NULL. Do this instead: INSERT INTO chat (who, said) VALUES ("Denis", "Hello, everyone!"); Or, if you feel like you have to list all of the fields, do: INSERT INTO chat (who, said, time) VALUES ("Denis", "Hello, everyone!", NULL); Tim
| Thread | ||
|---|---|---|
| • auto_increment question | Denis Voitenko | 22 Jul |
| • Re: auto_increment question | Nem W Schlecht | 22 Jul |
| • Re: auto_increment question | Denis Voitenko | 23 Jul |
| • Re: auto_increment question | Thimble Smith | 23 Jul |
| • Re: auto_increment question | Denis Voitenko | 23 Jul |
| • Re: auto_increment question | Thimble Smith | 23 Jul |
| • Re: auto_increment question | Bill Gerrard | 23 Jul |
| • timestamp (before: auto_increment question) | Denis Voitenko | 23 Jul |
| • Re: timestamp (before: auto_increment question) | Thimble Smith | 23 Jul |
| • Re: timestamp (before: auto_increment question) | Paul DuBois | 23 Jul |
| • Re: auto_increment question | Paul DuBois | 22 Jul |
