Jump to content
Changes to the Jaspersoft community edition download ×

How to include quotes in query for varchar...


2005 IR Help

Recommended Posts

By: GodSend - godsend25

How to include quotes in query for varchar...

2004-06-01 12:35

I cant beleive this is giving me problems. I would like to include quotes in my query for a condition which involves varchar parameters....

 

<queryString><![CDATA[select * from drivers where DRIVER_NUMBER = $P{id}]]></queryString>

 

does not work as id is a string field in SqlServer ..

 

Please help :(

 

 

 

 

 

By: Chuck Deal - cdeal

RE: How to include quotes in query for varchar...

2004-06-01 13:47

try $P!{id}. NOTE the '!'

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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...