Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/02/2008, 08:59
Avatar de wladtepes
wladtepes
 
Fecha de Ingreso: febrero-2008
Mensajes: 140
Antigüedad: 16 años, 3 meses
Puntos: 0
Exclamación clave incremental en postgres

hola he estado intentando realizar una clave incremental en una tabla en postgres

bueno encontre un esquema pero no entiendo como es que tengo que hacer para dejar una pk incremental

les dejo el esquema

de antemano muchas gracias por la ayuda

CREATE [ TEMPORARY | TEMP ] SEQUENCE name [ INCREMENT [ BY ] increment ]
[ MINVALUE minvalue | NO MINVALUE ] [ MAXVALUE maxvalue | NO MAXVALUE ]
[ START [ WITH ] start ] [ CACHE cache ] [ [ NO ] CYCLE ]
[ OWNED BY { table.column | NONE } ]