Contenido del Curso
SQL Tutorial for Beginners
SQL Tutorial for Beginners
SQL Like
The LIKE operator is used with WHERE
to search for some pattern in a string.
The pattern is usually some kind of Regular Expression that is built with some rules, but we won't dive deep into it. In the meantime, the following rules are enough for you:
%
means 0 or more symbols:a%
matchesa
,aa
,aaaaa
, etc.b%d
matchesbd
,bad
,bored
, etc._
matches single symbol.t_ee
matchestree
,twee
etc, and_o%_
matchwow
,coooow
,soap
etc., but notso
for example.
In this example all singers with the naming of two separate words, both consist of at least one symbol.
SELECT singer FROM songs WHERE singer LIKE '_% _%'
Tarea
Select all singer
s with naming starting with A.
¡Gracias por tus comentarios!
SQL Like
The LIKE operator is used with WHERE
to search for some pattern in a string.
The pattern is usually some kind of Regular Expression that is built with some rules, but we won't dive deep into it. In the meantime, the following rules are enough for you:
%
means 0 or more symbols:a%
matchesa
,aa
,aaaaa
, etc.b%d
matchesbd
,bad
,bored
, etc._
matches single symbol.t_ee
matchestree
,twee
etc, and_o%_
matchwow
,coooow
,soap
etc., but notso
for example.
In this example all singers with the naming of two separate words, both consist of at least one symbol.
SELECT singer FROM songs WHERE singer LIKE '_% _%'
Tarea
Select all singer
s with naming starting with A.
¡Gracias por tus comentarios!
SQL Like
The LIKE operator is used with WHERE
to search for some pattern in a string.
The pattern is usually some kind of Regular Expression that is built with some rules, but we won't dive deep into it. In the meantime, the following rules are enough for you:
%
means 0 or more symbols:a%
matchesa
,aa
,aaaaa
, etc.b%d
matchesbd
,bad
,bored
, etc._
matches single symbol.t_ee
matchestree
,twee
etc, and_o%_
matchwow
,coooow
,soap
etc., but notso
for example.
In this example all singers with the naming of two separate words, both consist of at least one symbol.
SELECT singer FROM songs WHERE singer LIKE '_% _%'
Tarea
Select all singer
s with naming starting with A.
¡Gracias por tus comentarios!
The LIKE operator is used with WHERE
to search for some pattern in a string.
The pattern is usually some kind of Regular Expression that is built with some rules, but we won't dive deep into it. In the meantime, the following rules are enough for you:
%
means 0 or more symbols:a%
matchesa
,aa
,aaaaa
, etc.b%d
matchesbd
,bad
,bored
, etc._
matches single symbol.t_ee
matchestree
,twee
etc, and_o%_
matchwow
,coooow
,soap
etc., but notso
for example.
In this example all singers with the naming of two separate words, both consist of at least one symbol.
SELECT singer FROM songs WHERE singer LIKE '_% _%'
Tarea
Select all singer
s with naming starting with A.