<分区>
<分区>
我的java项目中有3个函数,如下所示。此结构在名为 PropertyInterface
的接口(interface)中提供block 引用>// to add the properties to Database
public void addProperty (String name, String value);// to get the properties from DB
public String getProperty (String propertyName);// to set the properties to DB
public void setProperty (String name, String value);与数据库的连接已建立。我将如何在 DatabaseProperty 类中实现这些功能?
最佳答案
我建议您 Google 搜索 "java mysql tutorial" 。您的第一个点击是 Lars Vogels tutorial on MySQL, Java en JDBC ,这一定会对您有所帮助。
关于java - 通过java函数向MySQL插入数据,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11792476/
相关文章:
java - Tomcat -Djava.library.path 设置
php - 计算第二个表中的外键数量并将其与第一个表中的行一起显示的有效方法 - PHP - MySQL
c# - 如何从 ASP.NET 中的 Mysql 存储过程调用输出参数
javascript - Express.js 无法使用异步等待从查询 mysql 获取结果
java - 不兼容的类型 : String cannot be converted to Date
javascript - MySql SELECT 多个根据表单输入并发布