Subject | Re: [firebird-support] useing char_length in the trigger |
---|---|
Author | Martijn Tonies |
Post date | 2010-12-29T14:06:02Z |
Hi,
Everything for an IF should go inside parenthesis.
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!
>I have trigger for generade order number. I want to use...
>char_length(TeklifNoStr) in the if command . but it is not working.
> there is error massage is
> "Token unknown - line 30, column 9
> char_length"
> if char_length(TeklifNoStr) = 9 then SifirTakfiye ='0';IF (...expression...)
> if char_length(TeklifNoStr) = 8 then SifirTakfiye ='00';
Everything for an IF should go inside parenthesis.
With regards,
Martijn Tonies
Upscene Productions
http://www.upscene.com
Download Database Workbench for Oracle, MS SQL Server, Sybase SQL
Anywhere, MySQL, InterBase, NexusDB and Firebird!