"Now we know our Alphabet all the way from A to Z[ed]"
(Grade 1 Tune)
"Now we know our ABC all the way from A to Z[ee]"
(same, USA variant)
If you remember one of the above jingles, you've probably got a few things to unlearn before you can use SQL character strings properly. Many people think that the alphabet is something from grade 1: that they know it already. If you fall into this category, be patient with us. By the end of this chapter, you'll understand why we feel it's necessary to devote so much space to what appears to be a fairly simple topic.
Before we can begin to address the question "what does SQL do with characters?", we have first have to ask: "what should it do?". That's why this book has two chapters on characters and character strings. The first one, the one you're reading, explains what characters are, what the important character sets are and how to relate or switch ... the universal things. The next chapter gets into what the database solutions are. After you've read this chapter, you'll see why the "solutions" are varied, random and wrong.
-
What is a Character?
Consider two vertical bars with a horizontal bar between them: H. This H is... -
What's In It for Me?
Now that you've read this far, you know everything you'll need to write you... -
Predefined Character Sets
In SQL, a Character set may be a Character set defined by a national or in...