Click here to Skip to main content
15,885,757 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
C#
sql= " SELECT * FROM (select receive_date"Receive", DECODE(E.state,'AND',(select * (payment_amount)from scroll_details where state='AND'))"AND" from scroll_register where state group by...

it gives an error end of statement expected.
Posted
Updated 30-Jan-14 19:48pm
v2
Comments
King Fisher 31-Jan-14 1:49am    
post a exact query or table structure

1 solution

use escape('\') before double quote ('"') IN your query string. a good article is here: Escaping in C#: characters, strings, string formats, keywords, identifiers[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900