CoderZone.org
Pages: 1 « previous     next »
  Print  
Author Topic: MySQL Prepared Statements  (Read 7802 times) Bookmark and Share
wheels
Jr. Member
*****
Posts: 62



View Profile
« on: Mar 12, 2011, 05:56:06 pm »

Do you use prepared statements or concatenate strings to create MySQL queries?  Why?

I have some older systems where I use concatenation, but I've been using prepare for newer code.

Logged
Max
Jr. Member
*****
Posts: 75



View Profile WWW
« Reply #1 on: Mar 14, 2011, 04:09:02 pm »

I usually clean the data pretty rigorously and then concatenate strings.

Do you use prepared statements or concatenate strings to create MySQL queries?  Why?

I have some older systems where I use concatenation, but I've been using prepare for newer code.


Logged
UnrealEd
Newbie
*
Posts: 22



View Profile
« Reply #2 on: Apr 02, 2011, 09:59:27 am »

I mostly concatenate strings after cleaning the input.

The only place I use prepared statements is in Java code, cause that's the way I learned to work with databases in Java. In all other languages I use concatination
Logged
Tags:
Pages: 1
  Print  
 
Jump to: