|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
the table quotes have the field cat which can store strings from '1','2',..'100'
how do i select all the records in the table quotes which have the field '2' ? how do i select all the records in the table quotes which have the field '2' and '3' ? thanks a lot. or do the table need to be redesigned. |
|
#2
|
|||
|
|||
|
Try this:
SELECT * FROM cat WHERE ( id <=3 and id >= 2) |
|
#3
|
|||
|
|||
|
Sorry, misread the post....
SELECT * FROM yourtable WHERE ( cat <=3 and cat >= 2) |
![]() |
| Viewing: Dev Shed Forums > Databases > MySQL Help > how to select * from quotes where cat in '1' ? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|