我正在尝试运行两个查询,一个用于创建表,另一个用于在其中插入一些值。表已创建,但值未添加到表中。
stmt = c.createStatement();
//Creating the Database if not Already Present
String sql = "CREATE TABLE if not exists senti "
+ "( latitude double NULL, "
+ "longitude double NULL, "
+ "Sentiment varchar(30) NULL) ";
stmt.executeUpdate(sql);
stmt.close();
//System.out.println(count + "count");
stmt1 = c.createStatement();
String sql1 = "INSERT INTO senti values(25.62010856,85.13277482,'neutral')";
stmt1.executeUpdate(sql1)