• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Tim Cooke
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Frank Carver
  • Henry Wong
  • Ron McLeod
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Himai Minh

No viable alternative at input 'MONTH'

 
Ranch Hand
Posts: 502
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I created a report in jaspersoft studio using parameters for date, date begin and date end. This report are working fine. Now I want to use DATE_FORMAT in my query SQL, I'm using this query, but I getting the error - no viable alternative at input 'MONTH' - this is my query SQL.

How to make a query to use MONTH and YEAR passed by $P{parameter}
Thanks.
 
Cezar Apulchro
Ranch Hand
Posts: 502
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
forget it, now I understand the MySQL SELECT MONTH.
Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic