This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- Bu örnekde sizlere bir tablodaki kolonun tipini nasıl değiştirebileceğimizi gösterdim. | |
| alter table EBSlog | |
| alter column İpadress int not null | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --Örnek olarak ismi "E" harfi ile başlayanları listeleyelim | |
| select * from admin where username like 'E%' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --Örnek olarak isminin 2. harfi "E" harfi olanları listeleyelim | |
| select * from admin where user '_E%' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- örnek adının baş harfi "a" veya "b" olan bireyleri listeleyelim. | |
| --Bunun için köşeli parantezler arasında "a" ve "b" yi kullanıyoruz | |
| select * from admin where user like '[ab]%' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- bu örneğimizde sizlere username kolonu içinde Boşluk Karekteri bulunan verileri listeyeceğiz. | |
| select * from admin where like '% %' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Bu örneğimizde sizlere adında bir den fazla kelime olup olmadığı ile ilgili sorgunun yapılmasını gösteceğim. | |
| -- Buradaki örnekde ilk harfi a,b,c,d,e ve ya f ile başlayan verileri listeleyecek | |
| select * from admin where like '[a-f]%' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Söz Dizimi | |
| Sütun_Adı BETWEEN Alt_Sınır AND Üst_Sınır |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Bu örnek ile 15 ile 150 arası verileri listeliyoruz. örnekde degöreceğiniz üzere bu operatör ile and operatörünü birlikte kullanıyoruz. | |
| select * from admin where id between 15 and 150 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Bu örnekde In operatörü ile sizlere id değerleri (1 ile 15) artasındaki verileri listeyeceğiz. | |
| select * from admin where if IN(1,15) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- IS NULL Örneği | |
| select * from EBSLog where İpAdress IS NULL | |