使用PreparedStatement进行数据库查询
例:模糊查询
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class PreparedStatementDemo{
//MySQL数据库驱动
public static final...
原创
2018-09-11 20:38:39 ·
12066 阅读 ·
0 评论