Guest User

Untitled

a guest
Dec 11th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. Class.forName("org.apache.cassandra.cql.jdbc.CassandraDriver");
  2. val con = DriverManager.getConnection("jdbc:cassandra:root/rootx@localhost:9160/Keyspace1")
  3. val cql = "UPDATE Standard1 SET 4 = 33 WHERE KEY = '6a736d697468'"
  4.  
  5. val statement = con.prepareStatement(cql);
  6. statement.execute();
  7.  
  8. println("Hi")
Add Comment
Please, Sign In to add comment