Java JDBC(3) DDL操作

接Java JDBC(2)http://blog.csdn.net/u013943420/article/details/65938451

// 创建数据库    创建表     备份数据库
            //statement = conn.prepareStatement("create database aaa");
            statement = conn.prepareStatement("create table bbb(aa int)");
            //statement = conn.prepareStatement("backup database aaa to disk='d:/jiaoback.bak'");
            statement.executeUpdate();   //statement.execute();
            System.out.println("OK!");

你可能感兴趣的:(Java)