Master where to go? Enough points plus! ! !

Category: Java SE
 
mingwenwei2006
2012-11-12 08:56:47

Sponsored Links
How to operate the database seeking JB? Not jdbNavToolBar control, to achieve CRUD, some of the best detail! A source better! JB's QueryDataSet can not be achieved with you? Thank you.

Sponsored Links

fengaway
2012-11-12 09:03:07
Database dbset = new Database ();
dbset.setConnection (new com.borland.dx.sql.dataset.ConnectionDescriptor ("jdbc: odbc: javadb "," sa "," ", false," sun.jdbc.odbc.JdbcOdbcDriver "));

Connection con = dbset.getJdbcConnection ();
PreparedStatement stmt = con.prepareStatement ("Insert Into into Cargo table (specifications, quantity, unit price, date, vendor) Values ​​(?,?,?,?,?) ");
stmt.setString (1, jdbTextField1.getText ()); / / get the input box to enter a string
stmt.setString (2, jdbTextField2.getText ());
stmt.setString (3, jdbTextField3.getText ());
stmt.setString (4, jdbTextField4.getText ());
stmt.setString (5, jdbTextField5.getText ());
stmt.execute (); / / This is not the executeQuery ();
stmt.close ( );
con.close ();

fact, there are other more general way, but I do not know :)
tommyzenth
2012-11-12 09:36:16
I also think this issue, wants to be jdbNavToolBar
JB comes Samples are all using this control ...
I think you can try to use QueryDataSet and JTable communication to complete
Samples where there is a dataExpress example is expanded jdbNavToolBar features, you can refer to that example
adaiye
2012-11-12 09:52:02
to keyinwind (winds)
Thank you, if I know how to deal with, and must tell you!
vrleader
2012-11-12 10:10:39
way to get there is this connection, try ...
/ / Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver");
/ / String url = "jdbc.odbc.javadb";
/ / Connection ; con = DriverManager.getConnection (url, "sa", "");
hgz_115
2012-11-12 10:34:22
To zez: Thank you very much! ! ! If you want to Update or Delete that have used this way?
you help me greatly, very grateful! ! !
access points! ! !
Domain and server ip had changed since 8/23/2013. Suspend the user registration and posts for program maintenance.