mysql
mysql copied to clipboard
One-off query with parameters
Allow executing a one-off query with parameters without requiring the user to compose the query by string concatenation.
Ideas:
- Provide something similar to mysql_real_escape_string.
- Create, execute and close a prepared statement.
The ideal syntax would be something like:
conn.query( "SELECT * FROM tb_something WHERE id = ?", id );