Skip to content

Instantly share code, notes, and snippets.

@tanelsuurhans
Created February 23, 2011 20:17
Show Gist options
  • Save tanelsuurhans/841095 to your computer and use it in GitHub Desktop.
Save tanelsuurhans/841095 to your computer and use it in GitHub Desktop.
try {
PreparedStatement query = sqlite.prepare("REPLACE INTO homes(player_name, world, x, y, z) values(?, ?, ?, ?, ?)");
query.setString(1, player.getDisplayName());
query.setString(2, player.getWorld().getName());
query.setDouble(3, location.getX());
query.setDouble(4, location.getY());
query.setDouble(5, location.getZ());
query.executeUpdate();
} catch(SQLException e) {
//
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment