[pgsql-ayuda] sobre procedimientos almacenados
=?iso-8859-1?Q?H=E9ctor_Mundaca_S.?=
hector@uni.cl
Wed, 25 Apr 2001 15:11:57 -0400
ROBERTO:
Intente crear esta tabla pero me da el siguiente error.
"NOTICE: CREATE TABLE will create implicit sequence
'asistente_id_asistente_seq'
for SERIAL column 'asistente.id_asistente'
NOTICE: CREATE TABLE/PRIMARY KEY will create implicit index
'asistente_pkey' fo
r table 'asistente'
NOTICE: CREATE TABLE will create implicit trigger(s) for FOREIGN KEY
check(s)
ERROR: Relation 'titulo' does not exis"
Pq.??
como las creas..??
lo que hize fue
home\>createdb datos
home\>\psql datos
[luser@ns named]$ psql datos
Welcome to psql, the PostgreSQL interactive terminal.
Type: \copyright for distribution terms
\h for help with SQL commands
\? for help on internal slash commands
\g or terminate with semicolon to execute query
\q to quit
datos=#
EN ESTA LINEA PUSE INSERTAR TODA LA CADENA QUE TU ENVIAS.. pero me dio el
error seņalado arriba.
Saludos..
P.D:: Estoy utilizando el pgadmin, es bastante mas facil.. hay que aprender
a utilizarlo con el tiempo.
> Un ejemplo real:
>
> CREATE TABLE asistente (
> id_asistente SERIAL,
> id_titulo int REFERENCES titulo,
> ap_paterno varchar NOT NULL,
> ap_materno varchar,
> nombre varchar NOT NULL,
> sexo char(1) CHECK (sexo in ('M', 'F')),
> id_puesto int REFERENCES puesto,
> compania varchar,
> direccion varchar,
> colonia varchar(40),
> ciudad varchar,
> codigo_postal varchar,
> id_estado varchar REFERENCES estado,
> id_pais char(2) NOT NULL REFERENCES pais,
> lada varchar,
> telefono1 varchar(8),
> fax varchar(8),
> email varchar,
> id_giro_empresa int NOT NULL REFERENCES giro_empresa,
> id_funcion_compra int NOT NULL REFERENCES funcion_compra,
> id_lugar_compra int REFERENCES lugar_compra,
> id_medio_informacion int REFERENCES medio_informacion,
> id_sistema_operativo int REFERENCES sistema_operativo,
> status char(2) default 'r', --r: real, i:imaginario,
> PRIMARY KEY (id_asistente)
> );
>
> Saludos,
>
> Roberto Andrade Fonseca
> randrade@abl.com.mx
>
> --------- Pie de mensaje -------------------------------------------
> Archivo historico: http://tlali.iztacala.unam.mx/maillist/pgsql-ayuda
> Cancelar inscripcion:
> mail to: majordomo@tlali.iztacala.unam.mx
> text : unsubscribe pgsql-ayuda
--------- Pie de mensaje -------------------------------------------
Archivo historico: http://tlali.iztacala.unam.mx/maillist/pgsql-ayuda
Cancelar inscripcion:
mail to: majordomo@tlali.iztacala.unam.mx
text : unsubscribe pgsql-ayuda