@@ -163,7 +163,7 @@ In the first method, your code implicitly loads the driver using the
163163Class.forName() method. For <application>Postgres</application>, you would use:
164164
165165<programlisting>
166- Class.forName(<literal> postgresql.Driver</literal> );
166+ Class.forName(" postgresql.Driver" );
167167</programlisting>
168168
169169This will load the driver, and while loading, the driver will automatically
@@ -380,9 +380,9 @@ An example is as follows:
380380
381381<programlisting>
382382Statement st = db.createStatement();
383- ResultSet rs = st.executeQuery(<literal> select * from mytable</literal> );
383+ ResultSet rs = st.executeQuery(" select * from mytable" );
384384while(rs.next()) {
385- System.out.print(<literal> Column 1 returned</literal> );
385+ System.out.print(" Column 1 returned" );
386386 System.out.println(rs.getString(1));
387387}
388388rs.close();
@@ -400,7 +400,7 @@ To perform an update (or any other SQL statement that does not return a
400400result), you simply use the executeUpdate() method:
401401
402402<programlisting>
403- st.executeUpdate(<literal> create table basic (a int2, b int2)</literal> );
403+ st.executeUpdate(" create table basic (a int2, b int2)" );
404404</programlisting>
405405</para>
406406</sect1>
@@ -455,9 +455,9 @@ create table images (imgname name,imgoid oid);
455455To insert an image, you would use:
456456
457457<programlisting>
458- File file = new File(<literal> myimage.gif</literal> );
458+ File file = new File(" myimage.gif" );
459459FileInputStream fis = new FileInputStream(file);
460- PreparedStatement ps = conn.prepareStatement(<literal> insert into images values (?,?)</literal> );
460+ PreparedStatement ps = conn.prepareStatement(" insert into images values (?,?)" );
461461ps.setString(1,file.getName());
462462ps.setBinaryStream(2,fis,file.length());
463463ps.executeUpdate();
@@ -477,8 +477,8 @@ Retrieving an image is even easier (I'm using PreparedStatement here, but
477477Statement can equally be used):
478478
479479<programlisting>
480- PreparedStatement ps = con.prepareStatement(<literal> select oid from images where name=?</literal> );
481- ps.setString(1,<literal> myimage.gif</literal> );
480+ PreparedStatement ps = con.prepareStatement(" select oid from images where name=?" );
481+ ps.setString(1," myimage.gif" );
482482ResultSet rs = ps.executeQuery();
483483if(rs!=null) {
484484 while(rs.next()) {