View RSS Feed

Recent Blogs Posts

  1. Using PreparedStatement

    by , 11-12-2011 at 06:36 PM (My Java Tips)
    SQL statements are executed on a database tables using Statement object. If the sql statement takes parameter, then it is a wise decision to use PreparedStatement as they are more flexible and makes coding easier.


    Creating SQL statements that take parameters provides flexible statements to work with. We can use the same statement and supply it with different values each time we execute it.

    We use place holders (question marks) in the query, which are supplied values ...
    Categories
    JDBC