Re: Oracle to PostgreSQL

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Oracle to PostgreSQL
Дата
Msg-id 49BD9231.4010602@hogranch.com
обсуждение исходный текст
Ответ на Oracle to PostgreSQL  (Greenhorn <user.postgresql@gmail.com>)
Ответы Re: Oracle to PostgreSQL  (Thomas Kellerer <spam_eater@gmx.net>)
Список pgsql-general
Greenhorn wrote:
> Unfortunately When I execute the above files using \i I am getting errors like
>
> ERROR:  syntax error at or near "("
> LINE 4:   SUB_TYPE          NUMBER(3)                   NOT NULL,
>
> Obviously 'number' is not PostgreSQL data type so is 'varchar2'.  What
> is your suggestion to create these tables in PostgreSQL?  Should I
> pre-process using Sed/Awk to find/replace the field type first?  Any
> recommendation is greatly appreciated :)
>

change number to numeric, and varchar2 to char and you'll likely be good.



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

Предыдущее
От: Greenhorn
Дата:
Сообщение: Oracle to PostgreSQL
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: Oracle to PostgreSQL