赞
踩
ant用处,主要用在编译java文件,打包,部署。打包:jar,war,ear包等。ant在项目中有很重要的作用。今天我们讲解它的另一个作用:执行 SQL 脚本文件。
- <dependency>
- <groupId>org.apache.ant</groupId>
- <artifactId>ant</artifactId>
- <version>1.10.11</version>
- </dependency>
- <dependency>
- <groupId>mysql</groupId>
- <artifactId>mysql-connector-java</artifactId>
- <version>8.0.26</version>
- </dependency>
- DROP DATABASE IF EXISTS `testant`;
- CREATE DATABASE `testant`;
- use `testant`;
- DROP TABLE IF EXISTS `leaf_alloc`;
-
- CREATE TABLE `leaf_alloc` (
- `biz_tag` varchar(128) NOT NULL DEFAULT '',
- `max_id` bigint(20
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。