[Pgsql-ayuda] Sybase/PostgreSQL

sandrigo lezcano psql@msa.com.py
Tue, 27 May 2003 19:34:48 -0500


Alvaro escribio:
-------------------------------------------------------
> Miraste el Migration Wizard de pgAdmin II?  _Quizas_ te sirva...
> En cualquier caso revisa la documentacion relevante en
> http://techdocs.postgresql.org

el link no me ayuda mucho..  y el pgAdmin II creo q es el que voy a usarlo
(*.txt)...." es exelente.."

en Sybase se guardan los graficos en  campos tipo "long binary"
en PostgreSQL podria ser "bigint"  ?????

en Sybase se guardan los un  campo tipo "integer" se define de como "not
null default autoincrement"
en PostgreSQL "CREO" podria ser  ?????   "serial"   ????

/*--  codigo en Sybase  -----------------------------  */
create table imagenes
(
    numero_interno                integer         not null default
autoincrement,
    legajo                               integer        not null
          check (legajo >= 1),
    tipo_imagen          char   not null
          check (tipo_imagen in ('1','2','3','9')),
    imagen               long binary,
    observacion          varchar(256),
    fecha                date   not null default 'today()',
    primary key (numero_interno)
)
/*--  codigo en PostgreSQL  -del manual en
linea ----------------------------  */
CREATE TABLE distributors (
      did    DECIMAL(3) PRIMARY KEY DEFAULT NEXTVAL('serial'),
      name   VARCHAR(40) NOT NULL CHECK (name <> '')
 );

el serial de que seria???

gracias..

sandrigo