![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hello, Im using the default precision for my timestamps, 6. Is it safe to declare this column unique? |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
create table contacts ( con_id serial , exp_id serial REFERENCES experiment, con_lname varchar(32) , con_fname varchar(32) , con_addressline varchar (64), con_zip varchar(16) , ); Is there some problem with these sql statements. |
#5
| |||
| |||
|
|
I am getting a constant error that says Parse error at "(". I am using 7.4 and I never had this kind of problem in previous versions. |
|
lines of my code: create table contacts ( con_id serial , exp_id serial REFERENCES experiment, con_lname varchar(32) , con_fname varchar(32) , con_addressline varchar (64), con_zip varchar(16) , ); |
#6
| |||
| |||
|
|
On Sep 13, 2004, at 4:19 PM, A Gilmore wrote: Im using the default precision for my timestamps, 6. Is it safe to declare this column unique? If you are assuming it's unique because of the high precision, well, you might get lucky, and you might not. (Some might even argue that it's for all intents and purposes unique). |
#7
| |||
| |||
|
|
Michael Glaesemann <grzm (AT) myrealbox (DOT) com> writes: On Sep 13, 2004, at 4:19 PM, A Gilmore wrote: Im using the default precision for my timestamps, 6. Is it safe to declare this column unique? If you are assuming it's unique because of the high precision, well, you might get lucky, and you might not. (Some might even argue that it's for all intents and purposes unique). I think what he's wondering is whether every two transactions will get distinguishable values of now(), so that putting a UNIQUE constraint on timestamps inserted by distinct transactions could never fail. I think this is an unsafe assumption, because: |
![]() |
| Thread Tools | |
| Display Modes | |
| |