Link to home
Start Free TrialLog in
Avatar of JSW21
JSW21Flag for United States of America

asked on

MySQL set Length/decimal for Double and bigint

Hello
I want to store OAdateTime in MySQL column (double)

What would be setting fro Length and Precision?

For bigint i set lenght to 20 and 0 for precision is this alright?

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of Sharath S
Sharath S
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of JSW21

ASKER

MySQL do not have millisecond so i need to use such field.
But my data require primary key on OAdateTime would the float(0,0) works?
Avatar of JSW21

ASKER

I got my problem solve. When create double I should just let the database decide the precision.