5.1. Problems with SQL Strings
Different programming languages handle strings differently. You simply have to do some unlearning when you get to SQL. Here are the major problem areas for programmers.
In SQL, character strings are printable characters enclosed in single quotation marks. Many older SQL implementations and several programming languages use double quotation marks or have an option that a single quotation mark can be used as an apostrophe. SQL uses two apostrophes together to represent a single apostrophe in a string literal.
Double quotation marks are reserved for column names that have embedded spaces or that are also SQL-reserved words.
Character sets fall into three categories: those defined by national or international standards, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access