inserting data that contains / or \

Поиск
Список
Период
Сортировка
От Patrick Hatcher
Тема inserting data that contains / or \
Дата
Msg-id OFDFEC13EB.5F749798-ON88256C47.005CC441-88256C47.005DA5EA@fds.com
обсуждение исходный текст
Ответы Re: inserting data that contains / or \  (Doug Silver <dsilver@urchin.com>)
Список pgsql-novice
Sorry up front.  I know this has probably been answered 10k times.
I need to insert data into a field that will look as such:  MC HANCOCK GOLD
5PPS S/4

my perl is getting better, but not quite there yet:  I have the following
regex:
$fields[$i] =~ s/\// /g;  which now puts a space in place of the /, but I
would like to the keep the text  as is.  I believe I need to replace the
single foward slash with 2 forward slashes.  But I'm lost as to how to do
it
Should it be this:  $fields[$i] =~ s/\//\///g;?

TIA

Patrick Hatcher
Macys.Com





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

Предыдущее
От: "Eduardo Cadena"
Дата:
Сообщение: Help creating a function
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Help creating a function