Using SQL LIKE

21.03.2025
160
Using SQL LIKE

LIKE

When we covered the WHERE statement, we also mentioned the Sql LIKE word with an example. Let’s explain a little more now. It is used to sort the records we select from the tables.

Example use;

SELECT * From uye WHERE kullanici LIKE 'a%'
SQL

In our application, we got the information of the users whose username starts with a in the uyeler table. If we think for the word Armada, we get A. Here %a means that no letter after the letter %a is not important.

%a –> calls records ending with a,
a%–> calls records starting with a,
%a% –> calls records with a in them.

MAKE A COMMENT
COMMENTS - 0 COMMENTS

No comments yet.

Bu web sitesi, bilgisayarınıza bilgi depolamak amacıyla bazı tanımlama bilgilerini kullanabilir.
Bu bilgilerin bir kısmı sitenin çalışmasında esas rolü üstlenirken bir kısmı ise kullanıcı deneyimlerinin iyileştirilmesine ve geliştirilmesine yardımcı olur.
Sitemize ilk girişinizde vermiş olduğunuz çerez onayı ile bu tanımlama bilgilerinin yerleştirilmesine izin vermiş olursunuz.
Çerez bilgilerinizi güncellemek için ekranın sol alt köşesinde bulunan mavi kurabiye logosuna tıklamanız yeterli. Kişisel Verilerin Korunması,
Gizlilik Politikası ve Çerez (Cookie) Kullanımı İlkeleri hakkında detaylı bilgi için KVKK&GDPR sayfamızı inceleyiniz.
| omersahin.com.tr |
Copyright | 2007-2025