且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过Java从SQL表中删除一行

更新时间:2023-02-05 14:28:27

尽管用于简单删除操作的SQL会无论使用哪种语言和使用哪个数据库,都保持不变,连接到数据库并执行查询的代码将根据您使用的连接到数据库的库而改变.

Though the SQL for a simple delete operation will remain the same no matter what language you use and what database you use, the code to connect to the database and execute the query will change based on which library you''re using to connect to the database.

只需搜索JDBC以及如何连接到数据库,您将获得很多很好的示例.

 Just search for JDBC and how to connect to a database, you''ll get a lot of good examples.