使用Statement执行sql语句

3.1 执行DDL语句 /** * 执行DDL语句(建立表) */ @Test public void test1(){ Statement stmt = null; Connection conn = null; try { //1.驱动注册程序 Class.forName("com.mysql.jdbc.Driver"); //2.获取链接对象
相关文章
相关标签/搜索