Notes![what is notes.io? What is notes.io?](/theme/images/whatisnotesio.png)
![]() ![]() Notes - notes.io |
Go
--Like sorguları
--%(Genel Önemli değil) Operatörü
--isminin baş harfi j olan personellerin adını ve soyadını getirelim
select Adi,SoyAdi from Personeller where Adi like 'j%'
--İsminin son harfi y olan personellerin adını ve soyadını yazdıralım
select Adi,SoyAdi from Personeller where Adi like '%y'
--İsminin son üç harfi ert olan personeli getirelim
select Adi,SoyAdi from Personeller where Adi like '%ert'
--isminin ilk harfi r, son harfi t olan personeli getirelim
select * from Personeller where Adi like 'r%t'
--isminde an geçen personelin adını yazdıralım
select * from Personeller where Adi like '%an%'
--isminin baş harfi n olan ve içerisinde an geçen personeli getirelim
select * from Personeller where Adi like 'n%an%'
-- _(Özel Önemli Değil)
--isminin ilk harfi a, ikinci harfi farketmez ve üçüncü harfi d olan
select * from Personeller where Adi like 'a_d%'
--isminin ilk harfi m , ikinci üçüncü ve dördüncü harfi farketmez beşinci harfi a
select * from Personeller where Adi like 'm___a%'
--[] (ya da) operatörü
--isminin ilk harfi n ya da m ya da r olan personelleri getirelim
select * from Personeller where Adi like '[nmr]%'
--isminin içerisinde a yada i geçen personelleri getirelim
select * from Personeller where Adi like '%[ai]%'
--[*-*] (Alfabetik Arasında) Oepratörü
--isminin baş harfi a ile k arasında alfabetik sıraya göre herhangi bir harf olan personellerin adını yazdıralım
select Adi from Personeller where Adi like '[a-k]%'
--[^*] (Değil) Operatörü
--isminin baş harfi a olmayan personelleri getirelim
select * from Personeller where Adi like '[^a]%'
--Escape(Kaçış) Karakterleri
--Like sorgularında kullandığımız %,_,[] gibi özel ifadeler eğer ki verimizin içerisinde geçiyorsa sorgulama esnasında hata ile karşılaşabiliriz. Böyle durumlarda bu ifadelerin özel ifade olmadığını escape karakteri ile belirleyebiliriz.
--[] operatörü ile
--Adının baş harfi _ ile başlayan personeli getir
select * from Personeller where Adi like '_%' --Bu şekilde getiremiyoruz çünkü _ karakteri özel bir operatör olduğundan dolayı onu operatör olarak algılıyor
--[] operatörü ile _nin özel oepratör değil benim verimde bulunan karakter olduğunu belirtebilirim
select * from Personeller where Adi like '[_]%'
--Escape ile
--Escape ile hangi karakterin kendinden sonra geleni operatör olarak değil de veride bulunan karakter olduğunu belirleyeceğini yazıyoruz ben burada x yaptım istediğiniz karakteri yazabilirsiniz.
select * from Personeller where Adi like 'x_%' Escape 'x'
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team