Code Monkey home page Code Monkey logo

excel-to-mysql's Introduction

excel批量导入数据库

有时候一些数据表是非专业人士设计的,因为需要他们提供字段提供数据。
特别是在游戏行业,配置表数据都是策划弄的。这时候只需告诉他设计表要注意的事项,就能一键导入数据库。
例如第一格是主键,第二行字段名,第三行字段类型,第四行表描述,第五行字段描述。
说明文件文件名加“说明”不生成表

1
(field)id name age
(type)int varchar(100) int
人物表
(字段描述)主键 名字 年龄
1 zhangwuji 24
2 xiexun 50

target中有打包的jar包,直接执行加excel存放路径即可

java -jar excel-to-mysql-0.0.1-SNAPSHOT.jar D:\\data 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.