using LIKE | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

using LIKE

LIKE "%boxes" it gives the names ENDING with "boxes"... but the question asked was -"to search "boxes" in the "name" column i.e, eg: "boxessss" should be selected... but it doesnt select it as "%boxes" will select the names with the last character boxes

30th Aug 2017, 9:50 AM
Sahana Menedal
Sahana Menedal - avatar
3 Réponses
+ 3
@Sahana Menedal: @Sam's answer works for your example (strings starting with boxes). For "in the string anywhere", you need the wildcard on both sides: "%boxes%"
30th Aug 2017, 3:53 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
"boxes%"
30th Aug 2017, 10:57 AM
S C
0
Yaa. You are right.But they have given so n one of the question in the tutorial.
1st Sep 2017, 3:59 PM
Sahana Menedal
Sahana Menedal - avatar