Re: [Q] Select Problem
Posted in 1998
Pawel Stepniowski wrote: >> >> Hi, >> >> anyone know , how to get similar functionality for numerical as LIKE >> does for string. >> I am developing program which has common frame to select records , >> restricted by user input . When user types in 'A*' all records beginning >> with A will be displayed. CLIPPED... You could use BETWEEN but a) it would be very costly (SQLEXPLAIN) and b) you would have to know the exact number of digits in order to make up the SQL dynamically. (i.e. where ord_num is BETWEEN ? and ? passing in '500' and '600' as values) (just an example). Good luck and I agree with the thought of re-thinking why this is being done... Rob Vorbroker Phone: 513/336-6741 Vorbroker Consulting FAX: 513/336-6742 www.vorbroker.com