Re: Date field
| From: | Russ Michell | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Date field | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-9683@lists.php.net to get a copy of this message | ||
> Hi,
> Can someone tell me how do stote date field in MySQL DB ?
This is the dump from my phpMyAdmin: use this SQL from the command
line and adapt it for your own needs:
# Table structure for table 'item'
#
CREATE TABLE item (
id smallint(4) DEFAULT '0' NOT NULL auto_increment,
name varchar(25) NOT NULL,
dept varchar(25) NOT NULL,
abstract mediumblob NOT NULL,
submitDate datetime DEFAULT '0000-00-00 00:00:00' NOT NULL, // The
//bit you need
scale varchar(7) NOT NULL,
PRIMARY KEY (id),
UNIQUE id (id)
);
HTH !!
Russ
On Wed, 20 Jun 2001 18:27:42 +0300 Rosen <rosen_dm@dir.bg> wrote:
> Hi,
> Can someone tell me how do stote date field in MySQL DB ?
>
> Thanks,
> Rosen M.
>
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
#-------------------------------------------------------#
"Believe nothing - consider everything"
Russ Michell
Anglia Polytechnic University Webteam
e: r.j.michell@apu.ac.uk
w: www.apu.ac.uk/webteam
t: +44 (0)1223 363271 x 2331
www.theruss.com
#-------------------------------------------------------#