some one suggested me its a better idea to use float as a primary key of a table instead of using the BIGINT. can we make float primary key to be identity ?
Considerations:
why do you need a float as a PK anyway? Do you need a value like 3,1234235234534 to uniquely identify your row?
Notice how if you do float a=1f and float b=1f they are the same right ?
However if(a==b) will likely not be true as floats are inaccurate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With