सबसे आसान तरीका होगा
String query = "select LastModified from CacheTable where url = '" + url +"'";
हालांकि आपको बाइंड वैरिएबल का उपयोग करना चाहिए:
String query = "select LastModified from CacheTable where url = ?";
prepStmt = conn.prepareStatement(query);
prepStmt.setString(1, url);
rs = prepStmt.executeQuery();