Solved

SQL prepared statement

Posted on 2014-03-07
1
260 Views
Last Modified: 2014-03-07
Hi,

I would like to know if it is good technique to define prepared statements at the top of a script and then execute them where needed or does it matter. is there a proper technique say including a page with them in it at the top
0
Comment
Question by:M. Jayme Nagy
1 Comment
 
LVL 58

Accepted Solution

by:
Gary earned 500 total points
ID: 39913231
Doesn't matter. Whichever works for you.
I use a mixture of both.
One off statements I declare as and when I need them.
Multi call statements I declare at the top.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Amazon Redshift 2 28
how to use a function in heredoc 5 23
designing in object programming 12 42
Configuring a checkbox in CSS and php 18 33
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now