Subject | Re: [firebird-support] setting column delimiters for iSql |
---|---|
Author | Helen Borrie |
Post date | 2006-08-01T06:03:49Z |
At 03:37 PM 1/08/2006, you wrote:
'#' || username || '#' || userid || '#' as usernameandid
from atable
./heLen
>Hi guys,select
>
>I'm trying to write an extraction shell script that will be crontabbed
>in a unix box. At certain days, it will extract out some data and save
>them as a file via firebird's iSql.
>Here's my problem.
>Because the files extracted will be input for another program, i'l
>need to format the search results in such that the columns are
>seperated by a delimiter.
>
>Ex:
>
> Currently, querying in iSql will give sth like
>
>USERNAME USERID
>============================== ==========
>UAT 02 uat02
>UAT 03 uat03
>
>Say i choose to use a # as my column delimeter, Is there a way i can
>set iSql to return it as the following instead?
>
>#UAT 02#uat02#
>#UAT 03#uat03#
>
>Thanks in advanced guys!
'#' || username || '#' || userid || '#' as usernameandid
from atable
./heLen