SunQuest
 
           Database Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesDatabase Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 26th, 2005, 05:28 AM
comix2000 comix2000 is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Aug 2005
Posts: 1 comix2000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 21 m 58 sec
Reputation Power: 0
MYSQL / MSSQL behaviours in "Where between"

I neet some Help for MySQL MSSQL.

There is a parameter in the "WHERE" part called "in Between".

for example:
... WHERE in Between 1 to 3

MY SQL prints all Values from 1 to 2 - exklusive the 3
MS SQL prints all Values from 1 to 3 - inklusive the 3

Is there a "between" parameter for MYSQL that makes the Output like MS SQL?

I know it is possible to use the following command:
">=1 AND <= 3" but I need the Result for "in Between".

Thanx for your help. Excuse my english. Its been long ago since I spend at High School for a year in Alaska

Reply With Quote
  #2  
Old August 26th, 2005, 10:53 AM
Madpawn Madpawn is offline
My beat is correct.
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Dec 2004
Posts: 339 Madpawn User rank is Private First Class (20 - 50 Reputation Level)Madpawn User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 2 Days 22 h 3 m 33 sec
Reputation Power: 4
MySQL's BETWEEN is inclusive (but there's no 'in'):

Code:
SELECT
 *
FROM
 table
WHERE
 id BETWEEN 1 AND 3


will retrieve rows with id 1, 2, and 3.
__________________
"A pawn is the most important piece on the chessboard -- to a pawn"


Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesDatabase Development > MYSQL / MSSQL behaviours in "Where between"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway