Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bigint vs char(10) column decision
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Conception bases de données
Divers
Thread ID:
01680563
Message ID:
01680571
Vues:
25
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform