Syntax

SQL Match a Pattern with LIKE Syntax

In SQL, match a pattern with like: filters text with wildcards — WHERE name LIKE 'A%'

Quick Answer

Syntax
WHERE name LIKE 'A%'
SQLSyntax

Match a Pattern with LIKE

Code example
WHERE name LIKE 'A%'

Filters text with wildcards.

Learn More

How to match a pattern with like in SQL

  1. Open your SQL file or editor.
  2. Copy the example, then replace its sample names and values for your code.

SQL Match a Pattern with LIKE Syntax

Use WHERE name LIKE 'A%'.

Related Syntax References

Frequently asked questions

What is the SQL syntax for match a pattern with like?

Use this pattern: WHERE name LIKE 'A%'

Can I copy this SQL code example?

Yes. Use Copy code and adapt the example to your program.

Is this SQL syntax different on Mac or Windows?

No. The language syntax is the same across operating systems.

Official source · How we verify