1
fjardon
Re: Support for SQL Parameterized queries ?
  • 2007/10/28 8:34

  • fjardon

  • Just popping in

  • Posts: 2

  • Since: 2007/10/27


Quote:

phppp wrote:
short answer: Yes


Great !



2
fjardon
Support for SQL Parameterized queries ?
  • 2007/10/27 7:54

  • fjardon

  • Just popping in

  • Posts: 2

  • Since: 2007/10/27


Hi
Is there any plan to support SQL parameterized queries ?

One could do something like:
1) prepare query: SELECT * FROM table WHERE Id=?
2) loop
a) bind(1, <some Id value>)
b) execute()
c) get next Id value
3) next loop

The major advantage over custom SQL query crafting is the SQL server can optimize the query once and for all. Another advantage is that most SQL layer will take care of parameter formatting i.e. you won't have to escape characters manually, add quotes for strings and not for numbers and all that stuff everyone do before executing the query.

All in all this leads to less code, less errors and better efficiency.




TopTop



Login

Who's Online

222 user(s) are online (121 user(s) are browsing Support Forums)


Members: 0


Guests: 222


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits