Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Char, varchar, nchar and nvarchar in SQL Server and MySql
Message
From
21/05/2014 12:50:32
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Char, varchar, nchar and nvarchar in SQL Server and MySql
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01600406
Message ID:
01600406
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform