diff --git a/documentation/trunk/solutions/database-access/eiffelstore/EiffelStore-SQL-injection.wiki b/documentation/trunk/solutions/database-access/eiffelstore/EiffelStore-SQL-injection.wiki index 08c9d02d..f0277a2c 100644 --- a/documentation/trunk/solutions/database-access/eiffelstore/EiffelStore-SQL-injection.wiki +++ b/documentation/trunk/solutions/database-access/eiffelstore/EiffelStore-SQL-injection.wiki @@ -19,3 +19,9 @@ A template query is a string containing the fixed parts of the query and placeho {{Note|the way you bind variables to the query is quite important and it will define if your query is safe and avoid a SQL Injection attack.}} +== How to define placeholders (variables) in a SQL Template query? == +Variables syntax is simple: the ':' special character followed by the variable name, something like :value + + SELECT * FROM TABLE_NAME WHERE field1 = :value + +