DB.prepare3kaya
Prepare a database query
Usage
DBStatement<a> prepare( DBHandle<a> con, String query )
Arguments
con The database connection
query The query template. This may contain replacement characters at some places (consult the manual for the specific database to find out what replacement syntax should be used) which will be replaced with variables in the DB.execPrepared (3kaya) function.
Overview
Prepare a database query. Prepared queries can then be executed later, using a parameter-replacement method that generally avoids SQL injection attacks.
-
st = prepare(con,"SELECT * FROM Users WHERE username = $1");
Releases
4 releases since Debian 5.0 (Lenny); the text changed 3 times.