SQL prepared statement


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
J NUnicorn wranglerAsked:
Who is Participating?
GaryConnect With a Mentor Commented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.