27 EKİM 2009, Salı
SQL : vs <= >=
SQL server (2000 & 2005 ) bu iki sorgu arasındaki fark Nedir ? Hangisi senaryoları tercih etmeliyim ?
Sorgu1:
Select EventId,EventName from EventMaster where EventDate BETWEEN '10/15/2009'
and '10/18/2009'
Query2:
Select EventId,EventName from EventMaster where EventDate >='10/15/2009' and
EventDate <='10/18/2009'
--Edit: second Eventdate was originally missing, hence query syntactically wrong
CEVAP
27 EKİM 2009, Salı
Soru uzun sözdizimi için bir steno ARASINDA. aynıdır:
ARASINDA örneğin işe yaramaz bir alternatif daha uzun bir sözdizimi kullanın
Select EventId,EventName from EventMaster
where EventDate >='10/15/2009' and EventDate <'10/18/2009'
Bunu Paylaş: