Skip to content

Instantly share code, notes, and snippets.

@brunkb
Last active September 27, 2015 03:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brunkb/8d0750659fd99f1935e6 to your computer and use it in GitHub Desktop.
Save brunkb/8d0750659fd99f1935e6 to your computer and use it in GitHub Desktop.
String sql = "””INSERT INTO AUTHOR (ID, FIRST_NAME, LAST_NAME)
VALUES (:id, :firstName, :lastName)"””
Map parameters = [id: 1337, firstName: “Pauly”, lastName: "McCoy"]
// jdbcTemplate is an autowired property
jdbcTemplate.update(sql, parameters)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment