Re: Passing a String with special character as an input

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Passing a String with special character as an input
Дата
Msg-id 4CECA28B.3010402@hogranch.com
обсуждение исходный текст
Ответ на Passing a String with special character as an input  (akp geek <akpgeek@gmail.com>)
Список pgsql-general
On 11/23/10 12:34 PM, akp geek wrote:
> Hi -
>
>            This is related to my earlier post. For the function I am
> passing a string. But the string some time has a single quote inside
> the string like "IT's a String Test" , How can I handle that, can you
> please help?
>

at the SQL level, pass it as a parameter.

like, in perl...

my $sth = $dbh->prepare('select test_repl(?);');
$sth->execute("It's a String Test");

(or my $sth->execute('It\'s a String Test'); ...)







В списке pgsql-general по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: Passing a String with special character as an input
Следующее
От: c k
Дата:
Сообщение: Re: plpyhton