Can someone clarify me the difference between CHAR and VCHAR and which one is best to be default type in my all SQL queries?
Is it VCHAR or CHAR? :D
Stefano Mtangoo 455
Senior Poster
Recommended Answers
Jump to PostCan someone clarify me the difference between CHAR and VCHAR and which one is best to be default type in my all SQL queries?
Is it VCHAR or CHAR? :DVarchar is the best option what i know...because char is fixed length...but varchar is automatically change size based on the …
Jump to Posthttp://www.mssqlcity.com/FAQ/General/char_vs_varchar.htm
Summary: If you specify column's datatype as char(20) and you enter a value, say, "test", mysql still uses 20 bytes.. But if the column's datatype is varchar, and you enter "test", it uses only 4 bytes.. The best place to use char is when you …
All 5 Replies
ahmksssv 0
Junior Poster in Training
nav33n 472
Purple hazed! Team Colleague Featured Poster
nav33n 472
Purple hazed! Team Colleague Featured Poster
ahmksssv 0
Junior Poster in Training
nav33n 472
Purple hazed! Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.