jbuilder中只是用来写程序,不用来调试的,主要他的功能不好,
你可在IE中直接调 试。
连SQL:可用JDBC:ODBC连,这是在WINDOWS下最实际的方案。
例:
Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
// Connect to the database
Connection conn =
DriverManager.getConnection ("jdbcdbc:test", "sa", "");
// Create a Statement
Statement stmt = conn.createStatement ();
// Select the ENAME column from the EMP table
ResultSet rset = stmt.executeQuery ("select * from test");
// Iterate through the result and print the employee names
while (rset.next ())
System.out.println (rset.getString (1));