Ver Mensaje Individual
  #1 (permalink)  
Antiguo 22/08/2003, 12:25
Nest0r
 
Fecha de Ingreso: mayo-2003
Mensajes: 8
Antigüedad: 21 años, 10 meses
Puntos: 0
Exclamación Estructura MsSql a Postgres

Hola,
Tengo una duda.... Resulta que tengo una estructura de unas tablas en MsSql y quiero convertirlas de manera facil y rapida en Postgres.

Lo que yo tengo es:
Código:
CREATE TABLE Agente (
       IdAgente             smallint IDENTITY(1,1),
       IdPais               smallint NOT NULL,
       RSNAgente            varchar(150) NOT NULL,
       DocAgente            char(50) NULL,
       DirAgencia           varchar(300) NULL,
       ConAgencia           varchar(50) NULL,
       Tl1Agente            char(50) NULL,
       Tl2Agente            char(50) NULL,
       FaxAgente            char(50) NULL,
       CorAgente            char(100) NULL,
       TipAgente            char(1) NOT NULL,
       GrupAgente           char(100) NULL,
       UsuTra		    char(10) NOT NULL,
       FecTra		    smalldatetime NOT NULL,
       Status		    char(1) NOT NULL
)
Y quiero el equivalente en Postgres.

Saludos