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;

using java as language

you need to write a language parser that handles that translation for you.
It can be done, but if you didn't know that you needed to do it it's highly doubtful you have the skills to pull it off.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.