Results 1 to 4 of 4

Thread: How to use the prepared statement in DBMS?

  1. #1
    Join Date
    Apr 2009
    Posts
    61

    How to use the prepared statement in DBMS?

    What is the most convenient way to use SQL statements in DBMS. I heard that the main feature , which distinguishes it from its super class statement is that unlike statement,it is given an SQL statement right when it is created. If anyone know the simple SQL statement in DBMS.

  2. #2
    Join Date
    Nov 2008
    Posts
    87

    Re: How to use the prepared statement in DBMS?

    Unlike Statement the SQL query is compiled one time and use that pre_compiled query in all iteration. using PHP and MySQL. You should also have a general understanding of databases and programming. So it reduces the execution time While declaring the PreparedStatement itself v can give the query which has to performed.

  3. #3
    Join Date
    Dec 2008
    Posts
    128

    Re: How to use the prepared statement in DBMS?

    If you are like me and most other people, you probably have not taken the time to learn about web security when you first started writing server-side code. simple SQL statement and takes no parameters, execute and compile every time when request is generated to database server. PreparedStatement is precompiled SQL statement and reside in PreparedStatement object. This is very dangerous as most people never even go back and try to make their code secure (or they simply forget).

  4. #4
    Join Date
    Feb 2009
    Posts
    117

    Re: How to use the prepared statement in DBMS?

    Statement is object which send SQL query to database. Statement sends each and every time SQL statement to database server for execution. the data is basically built into the SQL logic by building the query as a string on the fly. A Prepared Statement is a precompiled statement which takes the values dynamically at runtime. When we want to execute a statement number of times it is better to use Prepared Statement rather than using Statement object as this will compile everytime when it is being executed.

Similar Threads

  1. Replies: 4
    Last Post: 11-02-2012, 01:13 AM
  2. PRINT a Document Prepared on the iPad
    By Cappuccino in forum Portable Devices
    Replies: 4
    Last Post: 26-02-2011, 05:14 AM
  3. Ubuntu not prepared for Prime Time
    By KANAN14 in forum Operating Systems
    Replies: 3
    Last Post: 02-11-2010, 01:23 AM
  4. Problem with Prepared statement's 'setDate' method
    By Luis-Fernando in forum Software Development
    Replies: 5
    Last Post: 05-03-2010, 08:19 PM
  5. Replies: 4
    Last Post: 25-02-2009, 08:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,584,799.92500 seconds with 16 queries