DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/)
-   MySQL (http://www.daniweb.com/forums/forum126.html)
-   -   how to generate a mysql query from a english question (http://www.daniweb.com/forums/thread115949.html)

krish_kooll Mar 27th, 2008 10:02 am
how to generate a mysql query from a english question
 
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;

RoryGren Mar 27th, 2008 10:20 am
Re: how to generate a mysql query from a english question
 
I don't think you will be able to do that from mySQL.

What scripting / programming language are you going to use?

krish_kooll Mar 27th, 2008 10:23 am
Re: how to generate a mysql query from a english question
 
using java... something like querybrowser

RoryGren Mar 27th, 2008 10:42 am
Re: how to generate a mysql query from a english question
 
I suggest you post your question on the Java forum. You'll probably get better help there

blater Mar 30th, 2008 1:28 pm
Re: how to generate a mysql query from a english question
 
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.


All times are GMT -4. The time now is 4:08 pm.

Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC