Java ones were pretty easy for me to find...
String insertQuery = "insert into student values('" + studentNo + "','" + studentName +"','"+ studentAddress + "','"+studentAge+"')";
int result = statement.executeUpdate(insertQuery);
https://www.onlinetutorialspoint.com/jdbc/jdbc-insert-progra...Result #5 on Google for: jdbc insert program example
And this one, #1 for "jdbc example variable where" on Google:
String query = "select LastModified from CacheTable where " + " URL.equals(url)";
https://stackoverflow.com/questions/2608376/specifying-a-var...