Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bigint vs char(10) column decision
Message
General information
Forum:
Microsoft SQL Server
Category:
Database design
Miscellaneous
Thread ID:
01680563
Message ID:
01680571
Views:
24
>Hi Naomi,
>
>IMHO, safety is varchar(10).
>
>MartinaJ
>

Hi Martina,

Can you also explain why, say, varchar(10) is better than CHAR(10) for this particular case? If we always expect 10 digit number and we want to have this column to be a PK, would at least char(10) make better sense?

We had our meeting in regards to this table and sort of decided to go with the char (or varchar(10))...

Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform