This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tutorials:simple_flatfile_java_jdbc [2009/12/05 20:06] tdo |
tutorials:simple_flatfile_java_jdbc [2012/10/26 14:46] (current) |
||
|---|---|---|---|
| Line 106: | Line 106: | ||
| // The SQL statement to be executed | // The SQL statement to be executed | ||
| - | String sql = "select * from table1"; | + | String sql = "select * from table1 where mytext = 'bears'"; |
| try | try | ||
| { | { | ||
| Line 142: | Line 142: | ||
| } // End Class | } // End Class | ||
| </code> | </code> | ||
| + | |||
| ===== Compile and test the SELECT Statement ===== | ===== Compile and test the SELECT Statement ===== | ||