how to generate a mysql query from a english question

Reply

Join Date: Mar 2008
Posts: 7
Reputation: krish_kooll is an unknown quantity at this point 
Solved Threads: 0
krish_kooll krish_kooll is offline Offline
Newbie Poster

how to generate a mysql query from a english question

 
0
  #1
Mar 27th, 2008
i want to generate a query
example:
if the english question s given

->list all the details from my_table where name='smith' and age <30

it shld generate a mysql query for the question

->SELECT * FROM my_table WHERE name = 'Smith AND age < 30;
Last edited by krish_kooll; Mar 27th, 2008 at 11:03 am.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 60
Reputation: RoryGren is an unknown quantity at this point 
Solved Threads: 8
RoryGren's Avatar
RoryGren RoryGren is offline Offline
Junior Poster in Training

Re: how to generate a mysql query from a english question

 
0
  #2
Mar 27th, 2008
I don't think you will be able to do that from mySQL.

What scripting / programming language are you going to use?
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 7
Reputation: krish_kooll is an unknown quantity at this point 
Solved Threads: 0
krish_kooll krish_kooll is offline Offline
Newbie Poster

Re: how to generate a mysql query from a english question

 
0
  #3
Mar 27th, 2008
using java... something like querybrowser
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 60
Reputation: RoryGren is an unknown quantity at this point 
Solved Threads: 8
RoryGren's Avatar
RoryGren RoryGren is offline Offline
Junior Poster in Training

Re: how to generate a mysql query from a english question

 
0
  #4
Mar 27th, 2008
I suggest you post your question on the Java forum. You'll probably get better help there
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 25
Reputation: blater is an unknown quantity at this point 
Solved Threads: 7
blater's Avatar
blater blater is offline Offline
Light Poster

Re: how to generate a mysql query from a english question

 
0
  #5
Mar 30th, 2008
It's a difficult problem, but if you limit the vocabulary that can be used it's doable. Check out http://www.markwatson.com/opensource/#nlbean for an example implementation in Java.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the MySQL Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC