create table sintax

Поиск
Список
Период
Сортировка
От Júlio Almeida
Тема create table sintax
Дата
Msg-id BANLkTim67wD0PE02KPFobpOkEUQ7p6WRng@mail.gmail.com
обсуждение исходный текст
Ответы Re: create table sintax  (Taras Kopets <tkopets@gmail.com>)
Список pgsql-general
Hello,
 
If I run
 
create table newtable (like oldtable including constraints);
 
in the SQL window with works just file.
But if i execute
 
execute 'create table '||newtable||' (LIKE '||oldtable||' including constraints)';
 
inside a function, in a LOOP, the constraints aren't created.
What is the problem?
Tanks,
 
julio almeida 
 
 


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

Предыдущее
От: Nick Raj
Дата:
Сообщение: Re: Typecast
Следующее
От: Frank van Vugt
Дата:
Сообщение: Re: REASSIGN OWNED doesn't for all objects, ALTER FUNCTION seems to fix it