Re: [GENERAL] create table sintax

2011-04-19 Thread Taras Kopets
2011/4/19 Júlio Almeida > 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 are

[GENERAL] create table sintax

2011-04-19 Thread Júlio Almeida
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 pr