提交 412da1d0 编写于 作者: Z zyyang

change

上级 7303c5d0
...@@ -20,8 +20,7 @@ public class MultiThreadsWithSameStatmentTest { ...@@ -20,8 +20,7 @@ public class MultiThreadsWithSameStatmentTest {
conn = DriverManager.getConnection("jdbc:TAOS://localhost:6030/?user=root&password=taosdata"); conn = DriverManager.getConnection("jdbc:TAOS://localhost:6030/?user=root&password=taosdata");
stmt = conn.createStatement(); stmt = conn.createStatement();
stmt.execute("create database if not exists jdbctest"); stmt.execute("create database if not exists jdbctest");
stmt.executeUpdate("create table jdbctest.weather (ts timestamp, f1 int)"); stmt.executeUpdate("create table if not exists jdbctest.weather (ts timestamp, f1 int)");
} catch (ClassNotFoundException | SQLException e) { } catch (ClassNotFoundException | SQLException e) {
e.printStackTrace(); e.printStackTrace();
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册