Re: copy commands and linefeeds

Поиск
Список
Период
Сортировка
От Mija Lee
Тема Re: copy commands and linefeeds
Дата
Msg-id 200709191820.l8JIJgka014224@brood2.pc.scharp.org
обсуждение исходный текст
Ответ на copy commands and linefeeds  (Mija Lee <mija@scharp.org>)
Ответы Re: copy commands and linefeeds  (Oliver Elphick <olly@lfix.co.uk>)
Список pgsql-novice
Oliver:

thanks so much for the help. Just for folks who might be looking on the list,
Oliver's suggestion works with 8.1 and above:

    alter table mytable add check (mycolumn !~ E'[\n\r]');

whereas this works on 8.0:

    alter table mytable add check (mycolumn !~ '\\r\\n');

Maybe everyone already knows this...

Mija


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Null records in pg_operator
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: copy commands and linefeeds