<div class="gmail_quote">
<div>Hello,</div>
<div> </div>
<div>If I run</div>
<div> </div>
<div>create table newtable (like oldtable including constraints);</div>
<div> </div>
<div>in the SQL window with works just file.</div>
<div>But if i execute</div>
<div> </div>
<div>execute 'create table '||newtable||' (LIKE '||oldtable||' including constraints)';</div>
<div> </div>
<div>inside a function, in a LOOP, the constraints aren't created.</div>
<div>What is the problem?</div>
<div>Tanks,</div>
<div> </div>
<div>julio almeida </div>
<div> </div>
<div> </div></div><br>