GCGrowCarrer

Strings and Formatting

Locked

Lesson 3 of 25 · Syntax · Easy

Finish these first:Values and Data Types →Or pass the tests below to unlock it now.

1

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.'
Key words (tap to learn):
2

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.

3

Quick check

Which kind of quotes does standard SQL use around text like 'Tokyo'?

4

Your challenge

1 sample test, 1 hidden

Write a SQL line that gives back the text 'Hello' (just type SELECT 'Hello';).

Stuck? Get a hint (free)
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.

Mastery0%

Learn this first

Opens up next

This is the last lesson in this branch.