in reply to security question, mysql, limit, dbi, and placeholders
Also, PostgreSQL doesn't support placeholders for the number after the LIMIT. MySQL may have the same limitation. If you can't use placeholders, you will need to interpolate the value when you construct the SQL. This means you must be careful about validating the value to be a number.SELECT * FROM products WHERE prod_name = ? OR prod_desc = ?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: security question, mysql, limit, dbi, and placeholders
by pfaut (Priest) on Apr 25, 2003 at 21:05 UTC |