Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Char, varchar, nchar and nvarchar in SQL Server and MySq
Message
De
30/05/2014 17:37:57
 
 
À
21/05/2014 12:57:11
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01600406
Message ID:
01601021
Vues:
30
Thank you Craig.

Alex

>char and varchar should not be considered as they don't support Unicode.
>
>As for nchar and nvarchar, follow this advice (http://technet.microsoft.com/en-us/library/ms186939.aspx)
>
>Use nchar when the sizes of the column data entries are probably going to be similar.
>
>Use nvarchar when the sizes of the column data entries are probably going to vary considerably.
>
>
>>I'm planning a database in MySql and wonder what are the pertinent considerations of using char, varchar, nchar and nvarchar for fields.
>>
>>I read for example that char(6) pads right with spaces when saving but reads without trailing spaces, whereas varchar saves the exact number of trailing spaces and reads them back. What would you recommend as good practice to convert dbf tables? How about totally new tables?
>>
>>TIA,
>>
>>Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform