on 02-26-2013 10:53 AM
Hi,
I am creating a stored procedure in the repository, but I am unable to use the following syntax:
SELECT TRIM (LEADING 'a' FROM 'aaa123456789aa') "trim leading" FROM DUMMY;
I get the error:
incorrect syntax near "..." ... at qp_gram.y:34124
I do not see anything wrong with this syntax. It comes directly from the documentation and works in a standard procedure. Any suggestions for a workaround?
Steven.
Hi Steven,
Can you please use the following statement:
SELECT LTRIM ('aaa123456789aa', 'a') "trim leading" FROM DUMMY;
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perfect, fixed!
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Steven,
Just out of curiosity, where is the statement which you quoted is being used. Can you please post the link to the documentation.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.