hibernate - What this sql query is wrong? -
query q = session.createquery("from financialtransactions ft_type='"+fttype+"' date between '"+begindate+"' , '"+enddate+"'");
whats wrong above query? gives error
you missed and
there , here date
keyword
change
where ft_type='"+fttype+"' date between
to
where ft_type='"+fttype+"' , date between
between various conditions need use and
Comments
Post a Comment