Stored Procedure - Comparison With Prepared Statements

Comparison With Prepared Statements

Prepared statements take an ordinary statement or query and parameterize it so that different literal values can be used at a later time. Like stored procedures, they are stored on the server for efficiency and provide some protection from SQL injection attacks. Although simpler and more declarative, prepared statements are not ordinarily written to use procedural logic and cannot operate on variables. Because of their simple interface and client-side implementations, prepared statements are more widely reusable between DBMSs.

Read more about this topic:  Stored Procedure

Famous quotes containing the words comparison with, comparison, prepared and/or statements:

    What is man in nature? A nothing in comparison with the infinite, an all in comparison with the nothing—a mean between nothing and everything.
    Blaise Pascal (1623–1662)

    Away with the cant of “Measures, not men!”Mthe idle supposition that it is the harness and not the horses that draw the chariot along. No, Sir, if the comparison must be made, if the distinction must be taken, men are everything, measures comparatively nothing.
    George Canning (1770–1827)

    In New York—whose subway trains in particular have been “tattooed” with a brio and an energy to put our own rude practitioners to shame—not an inch of free space is spared except that of advertisements.... Even the most chronically dispossessed appear prepared to endorse the legitimacy of the “haves.”
    Gilbert Adair, British author, critic. “Cleaning and Cleansing,” Myths and Memories (1986)

    There is a certain embarrassment about being a storyteller in these times when stories are considered not quite as satisfying as statements and statements not quite as satisfying as statistics; but in the long run, a people is known, not by its statements or its statistics, but by the stories it tells.
    Flannery O’Connor (1925–1964)