Guest_imported
New member
- Jan 1, 1970
- 0
Folks,
I'm porting some Access databases over to MySQL, but am concerned about the data type of one particular field.
In Access the field is a number (Long Integer) but has a default value that creates a random but unique number, seeded from the time of the host. The default value is therefore:
Int((Time()*1000000)*Rnd())
What this does is give new records a unique ID, together with a regular primary key ID autonumber column.
Is there a way to carry this default value instruction across to MySQL?
Many thanks!
Stuart.
I'm porting some Access databases over to MySQL, but am concerned about the data type of one particular field.
In Access the field is a number (Long Integer) but has a default value that creates a random but unique number, seeded from the time of the host. The default value is therefore:
Int((Time()*1000000)*Rnd())
What this does is give new records a unique ID, together with a regular primary key ID autonumber column.
Is there a way to carry this default value instruction across to MySQL?
Many thanks!
Stuart.