Top "Prepared-statement" questions

A Prepared Statement (or parameterized statement) is a precompiled SQL statement that serves to improve performance and mitigate SQL injection attacks.

Prepared Statement vs. Stored Procedure

If you are using php5 and mysql5, is there a substantial advantage to using stored procs over prepared statements? ( i …

php mysql stored-procedures prepared-statement
LIMIT keyword on MySQL with prepared statement

SELECT id, content, date FROM comment WHERE post = ? ORDER BY date DESC LIMIT ?, ? With PDO (I'm using MAMP 2.0.5 that has …

php mysql prepared-statement limit
bind_param problem with binding boolean values

I have a problem binding booleans using mysqli_stmt::bind_param in PHP5. The SQL query is the following: insert …

php mysqli boolean prepared-statement bindparam
MySQL Prepared statements with a variable size variable list

How would you write a prepared MySQL statement in PHP that takes a differing number of arguments each time? An …

php sql mysql prepared-statement
Why even use *DB.exec() or prepared statements in Golang?

I'm using golang with Postgresql. It says here that for operations that do not return rows (insert, delete, update) we …

sql database postgresql go prepared-statement
Why is using a mysql prepared statement more secure than using the common escape functions?

There's a comment in another question that says the following: "When it comes to database queries, always try and use …

php mysql security sql-injection prepared-statement
Oracle's RETURNING INTO usage in Java (JDBC, Prepared Statement)

I'm using JDBC to execute Oracle statement which looks like this: "INSERT INTO MYTABLE(MYDATA) VALUES(?) RETURNING MY_CALCULATED_DATA …

java oracle jdbc plsql prepared-statement
pdo prepared statements with wildcards

I want to execute the following mysql query: SELECT * FROM `gc_users` WHERE `name` LIKE '%anyname%' I tried …

php mysql pdo prepared-statement
SQLite/C# Connection Pooling and Prepared Statement Confusion

I have been spending some time reading different best practices for databases and for SQLite specifically. While reading I found …

c# sqlite prepared-statement connection-pooling
C# Prepared Statements - @ sign (at / strudel sign) queries

I Have a problem with a prepared statement in C#: OdbcCommand cmd = sql.CreateCommand(); cmd.CommandText = "SELECT UNIQUE_ID FROM …

c# sql sql-server-2005 prepared-statement email-validation