Hi,
I have a table events with
event 'id'
staffid
studentid
topic
eventdes
yearlev
what is the sql descriptor for between 0 and 6 as well as equal to?
I have found < and also > as well as the equal but not between two values.
Page 1 of 1
SQL command for between two values
#2
Posted 05 November 2006 - 12:57 PM
Graeme Forrester, on Nov 5 2006, 09:04 AM, said:
Hi,
I have a table events with
event 'id'
staffid
studentid
topic
eventdes
yearlev
what is the sql descriptor for between 0 and 6 as well as equal to?
I have found < and also > as well as the equal but not between two values.
I have a table events with
event 'id'
staffid
studentid
topic
eventdes
yearlev
what is the sql descriptor for between 0 and 6 as well as equal to?
I have found < and also > as well as the equal but not between two values.
Hi
`event`.`yearlev` BETWEEN '1' AND '3'
will pick up 1, 2 and 3
It appears in the coded pages as yearlev>=1 and yearlev<=3
so when you start hacking, you may not find "between"
HTH
"Make something fool-proof and they will make a bigger fool"
Page 1 of 1

Sign In
Register
Help
This topic is locked

MultiQuote