Hi,

Clive Arnold wrote :
> 
> Apart from timestamp are there any other fields that will automatically generate 
>data for themselves when a new record is created ?.
> 
> I'm having trouble using timestamp with Macromdia Dreamweaver so something that just 
>generates a unique number for each record would be good e.g 1,2,3,4,5,6,7, .......

You can use auto_increment field attribute.
This example is taken from MySQL manual:

CREATE TABLE person (
    id SMALLINT UNSIGNED NOT NULL AUTO_INCREMENT,
    name CHAR(60) NOT NULL,
    PRIMARY KEY (id)
);

> 
> Thanks.
> 
> Clive Arnold - IT Co-ordinator
> White and Bowker Solicitors.
> 
[30 lines disclaimer removed to save bandwith ! ;) ]

Regards
--
Joseph Bueno
NetClub/Trader.com

---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to