Git Product home page Git Product logo

gsp-sqlparser's Introduction

gsp-sqlparser

gsp-sqlparser

downloaded from this site: http://www.sqlparser.com/

  1. In order to compile and run this Java demo, make sure JDK must be installed (JDK version >= 1.5) you can always download the latest version of JDK here: http://www.oracle.com/technetwork/java/javase/downloads/index.html

after download this JDK, then install it.

  1. download the latest version of General SQL Parser Java version here: http://www.sqlparser.com/download.php

  2. unzip the downloaded general sql parser libary file to c:\tmp, you will find demos under c:\tmp\gsp_java_trial\dist\demos

Or you can download more demos here: http://www.dpriver.com/blog/list-of-demos-illustrate-how-to-use-general-sql-parser/

  1. set java environment before compile and run demos, replace java home directory with correct value 4.1 open a dos command window, now you at c:\tmp\gsp_java_trial\dist> 4.2 set java_home="C:\Program Files\Java\jdk1.5.0_09"; 4.3 set path=%path%;%java_home%\bin; 4.4 set classpath=%classpath%;%java_home%\jre\lib\rt.jar;./gsp.jar

  2. we compile and run checksyntax demo under demos\checksyntax 5.1 javac demos\checksyntax\checksyntax.java 5.2 create a simple sql file test.sql under c:\tmp\gsp_java_trial\dist with following sample sql: select count(*) from tab 5.2 java demos.checksyntax.checksyntax test.sql 5.3 after select a SQL dialect, you will see a message: Check syntax ok!

  3. you can compile other demos under c:\tmp\gsp_java_trial\dist\demos

gsp-sqlparser's People

Contributors

sushilshah avatar

Watchers

 avatar  avatar  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.