[Pgsql-ayuda] Crear tablas

alejandro fernandez alejof@engineer.com
Wed, 08 Jan 2003 14:48:29 -0500


hola lista...

Como saben estoy utlizndo postgres como BD y deseo saber si uno puede crear una tabla con nombres dinamicos, me explico, deseo hacer lo siguiente:

create function tabla(varchar) returns numeric as´
declare
   num numeric;
   nom alias for $1;
begin
   create table nom(
      cod numeric(10) not null
   );
   num := 1;
   return num;
end;
´language ´plpgsql´;

lo puedo hacer ??? 

cuando trato de ejecutarlo (select ej(´ejemplo´))
me sale el siguiente mensaje:

ERROR: parser: parse error at or near "$1"

gracias por las sugerencias

atte

Alejandro Fernandez A
JAVA ENGINEER
MCM Software Solutions Inc.
-- 
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Meet Singles
http://corp.mail.com/lavalife