Skip to content

Instantly share code, notes, and snippets.

@kui
Created October 11, 2019 07:40
Show Gist options
  • Save kui/a27947ce374d5638551f3eab9a2791d2 to your computer and use it in GitHub Desktop.
Save kui/a27947ce374d5638551f3eab9a2791d2 to your computer and use it in GitHub Desktop.
val sql = """
INSERT INTO `person` (`birth`, `name`) "
VALUES (?, ?name)
"""
connection.createStatement(sql)
.bind(0, LocalDateTime.of(2019, 6, 25, 12, 12, 12))
.bind("name", "Some one")
.returnGeneratedValues("generated_id")
.execute() // return a Publisher include two Results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment