|
|||
Select Komutunun Kullanımı
select * from personel select gösterilecek_alanlar table tablo_adı select per_ad,per_soyad from personel select per_ad,per_soyad,per_maas from personel
select per_id from personel
select per_ad+' '+per_soyad from personel
where parametresi kullanımı
select * from personel where per_id=1
select * from personel where per_ad='kadir'
select per_ad from personel where per_maas=2500
select * from personel where per_maas<2500
select * from personel where per_maas>1500 and per_maas<2000
select * from personel where per_bolum='dikiş' and per_maas<2000
select * from personel where per_ad<>'şeyma'
select per_ad from personel where per_maas!=2500
select * from personel where not(per_is_tarih='06/04/2004')
select * from personel where per_ad='emel' or per_ad='ayhan'
like,in ve beetween kullanımı select * from personel where per_maas between 1000 and 2500
select * from personel where per_ad between 'a'and's'
select per_ad,per_soyad from personel where per_is_tarih between ('01/01/2008')and('31/12/2011')
select * from personel where per_ad in ('ayhan','ayşe')
select * from personel where per_is_tarih in ('01/01/2008')
select * from personel where per_ad like('a%')
select * from personel where per_ad like('%r')
select * from personel where per_ad like('_a__r')
select * from personel where per_soyad like '%er%'
select * from personel where per_soyad like '[ysn]%'
select * from personel where per_soyad like '[a-z]%'
|