Strings and Formatting
LockedLesson 3 of 25 · Syntax · Easy
Finish these first:Values and Data Types →Or pass the tests below to unlock it now.
The big idea
A string is how SQL stores text — names, cities, emails, or short messages. In SQL, always wrap text values in single quotes '...': Text is case-sensitive inside quotes, so 'Hello' and 'hello' are different strings.
Think of it like this: Think of single quotes in SQL like quotation marks around a spoken word — they tell the database 'this is plain text, not a column name.'
Read the lesson
A string is how SQL stores text — names, cities, emails, or short messages.
In SQL, always wrap text values in single quotes '...':
SELECT 'Tokyo';
SELECT 'Maya';
SELECT 'Welcome!';
Text is case-sensitive inside quotes, so 'Hello' and 'hello' are different strings.
Quick check
Which kind of quotes does standard SQL use around text like 'Tokyo'?
Your challenge
Write a SQL line that gives back the text 'Hello' (just type SELECT 'Hello';).
More learning tools(compare languages, visual guide, related lessons)
Compare with another language
Similar to python.strings (86% overlap). UTF-8 string manipulation: template literals in JS, std::string in C++, immutable strings in Go, &str/String in Rust.
Visual walkthrough
A diagram, a step-by-step animation, and short captions for Strings and Formatting.
Learn this first
- Values and Data TypesNot yet
Opens up next
This is the last lesson in this branch.