Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:simple_flatfile_java_jdbc [2009/12/05 19:08]
tdo
tutorials:simple_flatfile_java_jdbc [2012/10/26 14:46] (current)
Line 52: Line 52:
 } //end class } //end class
 </​code>​ </​code>​
- 
 ===== Step 2 Run OdxNet ===== ===== Step 2 Run OdxNet =====
 +
 +  * Under Windows, open a console window
 +  * Run OdxNet
 +  * OdxNet will default to listening on PORT 7555.
 +
 =====  Step 3 Create an Omnidex Datasource File ===== =====  Step 3 Create an Omnidex Datasource File =====
 ===== Step 4 Compile the JAVA application ===== ===== Step 4 Compile the JAVA application =====
Line 102: 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 138: Line 142:
 } // End Class } // End Class
 </​code>​ </​code>​
 +
 ===== Compile and test the SELECT Statement ===== ===== Compile and test the SELECT Statement =====
  
-  C:\dev\java>​javac OdxSimpleSelect.java+{{:cmd:​cmd_java_jdbc_simple.png|}}
  
 {{page>:​bottom_add&​nofooter&​noeditbtn}} {{page>:​bottom_add&​nofooter&​noeditbtn}}
 
Back to top
tutorials/simple_flatfile_java_jdbc.1260040089.txt.gz ยท Last modified: 2012/10/26 14:42 (external edit)