SORU
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ş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Art Food Kitty - Kelly Eddington

    Art Food Kit

    7 Kasım 2006
  • Lin Steven

    Lin Steven

    17 EKİM 2006
  • Microsoft Research

    Microsoft Re

    24 EKİM 2008

İLGİLİ SORU / CEVAPLAR