|
@@ -13,7 +13,7 @@ public class TestConnection {
|
|
|
// 创建 Statement
|
|
|
Statement stmt = conn.createStatement();
|
|
|
// 创建 PreparedStatement(推荐)
|
|
|
- String sql = "select * from T_Standard ";
|
|
|
+ String sql = "select * from T_Standard where F_BeginTime > '2025-04-18 00:00:00'";
|
|
|
PreparedStatement pstmt = conn.prepareStatement(sql);
|
|
|
// 执行查询...
|
|
|
ResultSet resultSet = pstmt.executeQuery();
|