![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hello, This is my declaration of a stored function in ASA: function DBA.f_TitlePageResult(in a_start integer,in a_limit integer,in a_target char(40),in a_sql long varchar) My problem is on parameter *a_sql* which accepts an sql statement. Since this is a string, it should be enclosed with a quote ('). If my sql statement has a quote (') ASA will complain. (I have tried replacing it with 2 quote but it doesn't work) This is my actual statement: select dba.f_TitlePageResult(1,10,'search.php','select number(*) as num, b.book_id, title, author_name, Year(copyright_date) as copyright, dba.BookCopies(b.book_id) as entries from books b key join book_word key join word_index where soundex(root_word) = soundex('java')') The error is near soundex('java'). Is there any escape character for this? I think I'm running out of quote'? Thanks for any help. |
![]() |
| Thread Tools | |
| Display Modes | |
| |