Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: how to extract all the select statements from sql file using java

  1. #1
    Junior Member
    Join Date
    May 2014
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy how to extract all the select statements from sql file using java

    i want to scan a sql file and extract all the select statements from the sql file using java. then from the select statement i have to take the count of tables the query is using. if the count is more than 4 i have to display a warning message that more than 4 tables not allowed. i am trying using scanner class in java. but am not able to do .can any one pls help me out on this..???


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,760
    My Mood
    Mellow
    Thanks
    233
    Thanked 712 Times in 698 Posts

    Default Re: how to extract all the select statements from sql file using java

    Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.

    Thread moved.

Similar Threads

  1. extract selected text out of a pdf file using java
    By ashish.sharma in forum What's Wrong With My Code?
    Replies: 5
    Last Post: December 2nd, 2013, 03:01 AM
  2. NEED TO EXTRACT FROM CSV FILE PUT INTO JTEXTFIELDS (JAVA SWING GUI)
    By Harry998 in forum What's Wrong With My Code?
    Replies: 13
    Last Post: February 20th, 2013, 10:24 AM
  3. [SOLVED] How to modify core Java interface java.sql.Statement.execute(String sql)?
    By amughost in forum Java Theory & Questions
    Replies: 6
    Last Post: June 9th, 2012, 04:31 PM
  4. Extract Table structure from SQL
    By tcstcs in forum JDBC & Databases
    Replies: 1
    Last Post: February 17th, 2012, 09:14 AM
  5. Passing sql statements from client to server
    By Apache in forum JDBC & Databases
    Replies: 3
    Last Post: November 4th, 2011, 02:47 AM