📄 manager.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package IPhone;import com.mysql.jdbc.ResultSet;import java.sql.SQLException;/** * * @author Work IS Passion */public class Manager { public void save(String str) { String Query ="insert into save(path) values('"+str+"')"; DBConnection dbc = new DBConnection(); dbc.insert(Query); } public String select() throws SQLException { String url = null; ResultSet rs = null; String Query = "select path from save where id='"+2+"'"; DBConnection dbc = new DBConnection(); rs = (ResultSet) dbc.select(Query); while (rs.next()) { url = rs.getString("path"); } return url; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -