FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

springboot-learning/springboot-generate-sqlscript at master · devhh/springboot-learning · GitHub

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

本文主要演示如何利用jdbc来批量新增数据库的表字段

其核心关键在于通过java.sql.DatabaseMetaData获取数据库表名称以及对应的数据库名称

本文提供2种方式新增数据库表字段

  • 1、通过程序生成sql语句,并把sql语句写到文件中,然后在把生成的文件扔到数据库的客户端执行

  • 2、通过程序生成的sql语句,直接在程序中执行sql


Back | FazBrowse Home | New Git URL