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

  • Adam Khoury

    Adam Khoury

    23 Ocak 2008
  • Jonathan Morrison

    Jonathan Mor

    24 Mart 2010
  • LardTardProductions's channel

    LardTardProd

    10 NİSAN 2009

İLGİLİ SORU / CEVAPLAR