Jump to content
We've recently updated our Privacy Statement, available here ×

WHERE clause syntax error


pawelkosi

Recommended Posts

Hi Guys,

I am learning MySQL at the same time as Jaspersoft Studio. I am following tutorial 'Adding Parameters Activity' from the online learning portal here on the website.

I am connected to my database and I can retrieve all the tables no problem, but when I try to add simple WHERE clause to the report querry I get syntax error, even though I follow everything exactly as it is in the tutorial. I have two columns, one is called 'UniqueKPICode' and holds string value (mix of letters and numbers) and other column is called 'AugYtdAct' that holds numerical (double) value.

select UniqueKPICode, AugYtdAct from accountsimportnewwhere UniqueKPICode = "DvOvx-Dv3-2-na-SCos"[/code]

I was trying to retrieve one record as per tutorial, the editor doesnt report any problems with this expressions though when I run the querry I get MySQL syntax error.

Link to the tutorial: https://www.jaspersoft.com/scorm_data/DevelopingReportswithJaspersoftStudio_0516/data/execute

Thanks for any help!

 

Pawel

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

After some digging around I have found that the problem wasn't with my querry but with built-in sorting (Select limit 100) in JasperSoft Studio

.mysql.jdbc.exceptions.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=100' at line 1

I guess it is a bug, I will report it to the bug tracking system.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...