how to put an special code in a string

Поиск
Список
Период
Сортировка
Искать

how to put an special code in a string

От:
"jack" <datactrl@tpg.com.au>
Дата:
Hi all,

With pg/Sql, how do I put an special code in a string? Such as

''abc'' || ||''xxx''||

How do I specify a tab or cr/lf code? Thank you

Jack


Re: how to put an special code in a string

От:
Tomasz Myrta <jasiek@klaster.net>
Дата:
Uz.ytkownik jack napisa?:
> Hi all,
> 
> With pg/Sql, how do I put an special code in a string? Such as
> 
> ''abc'' || ||''xxx''||
> 
> How do I specify a tab or cr/lf code? Thank you
C style should work. Try
 -> \t
 -> \r\n ?
Regards,
Tomasz Myrta


Re: how to put an special code in a string

От:
Jeff Eckermann <jeff_eckermann@yahoo.com>
Дата:
--- Tomasz Myrta  wrote:
> Uz.ytkownik jack napisa?:
> > Hi all,
> > 
> > With pg/Sql, how do I put an special code in a
> string? Such as
> > 
> > ''abc'' || ||''xxx''||
> > 
> > How do I specify a tab or cr/lf code? Thank you
> C style should work. Try
>  -> \t
>  -> \r\n ?

A generalized solution is to use the chr() function,
which can represent any ascii character, given the
decimal value as an argument.
So,  is chr(9);  is chr(13) || chr(10)

__________________________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo
http://search.yahoo.com


FAQ