W wwwlgy Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-14 #1 我是菜鸟不知在java中如何使用数据库 我用的是vj++,能有具体的例子吗?
B BornKilled Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-14 #3 vj++么? 不要用来玩java了,已经是弃儿了
D delphiasp Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-14 #4 可以用ODBC, 再通过jdbc-odbc bridge 不过vj++没什么前途啊!
W wwwlgy Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-15 #5 老兄具体一点行吗,最好有个例子 我最多也是用jdk的,从来就没用国wfc的
E emildy Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-16 #7 在微软的主页上有多媒体教程,应该有你想要的,去看看: http://www.microsoft.com/china/msdn/visualj/downloads/samples.htm
C chenlh Unregistered / Unconfirmed GUEST, unregistred user! 2001-04-16 #8 String Url = "Jdbc:Odbc:JavaXwerp"; //String Url = "jdbc:thinlocalhost:1521:Jaerpdata"; java.sql.Connection con; java.sql.Statement stmt; java.sql.ResultSet Rs; //load jdbc-odbc bridge try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); } catch(java.lang.ClassNotFoundException e) { System.err.println("Sorry, No DB Driver"); } //try try { con = java.sql.DriverManager.getConnection(Url, "pc", "pc"); java.lang.System.out.println("conneted!"); stmt = con.createStatement(); Rs = stmt.executeQuery(Query); .....................
String Url = "Jdbc:Odbc:JavaXwerp"; //String Url = "jdbc:thinlocalhost:1521:Jaerpdata"; java.sql.Connection con; java.sql.Statement stmt; java.sql.ResultSet Rs; //load jdbc-odbc bridge try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); } catch(java.lang.ClassNotFoundException e) { System.err.println("Sorry, No DB Driver"); } //try try { con = java.sql.DriverManager.getConnection(Url, "pc", "pc"); java.lang.System.out.println("conneted!"); stmt = con.createStatement(); Rs = stmt.executeQuery(Query); .....................