Giter Site home page Giter Site logo

db2excel's Introduction

db2excel

This is a tool to help turn a SQL statement result into a Excel file

这是一个简单的JAVA POI的一个应用, 用于将一条SQL语句返回的结果集填入一张Excel表格文件中。

目前测试通过了MySQL, SQLServer, 其他数据库暂时没有测试。

使用方法

  1. 创建一个Export2Excel类的实例,并带入driverName, dbURL, userName, userPwd 这四个参数。
  2. 调用Export2Excel.setSql(String Sql) 方法,传入SQL语句
  3. 调用Export2Excel.doExport(String fileName, String sheetName)方法, 导出Excel文件, 并返回操作结果Code:RESULT_FAIL(-1), RESULT_NO_RECORD_FOUND(0), RESULT_SUCCESS(1)

db2excel's People

Contributors

jerrygaoc avatar

Watchers

 avatar

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.