开发者

connecting to a different database engine depending on user input

I want the 开发者_StackOverflowuser to specify the name of database and table (eg database login and table customer).

Once the user gives these details, the data in the table customer must be displayed no matter whether the database and table is created in SQL Server or MySQL.

My application is designed in NetBeans.

How can this be done?


What your application displays to the user is completely independent of the database you are using.

In your case, connect to the database. Verify that the connection was correct, then display a window that shows the content of the table.

This is pure Java coding and more or less covered by every Java tutorial that deals with JDBC and databases.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜