olá.. obrigado por responder..
soh tem uma coisa.. o Postgres tambem nao tem o comando AUTO_INCREMENT
e INDEX.. como seriam esses comandos em postgres ???

On 10/12/06, Rodrigo Hjort <[EMAIL PROTECTED]> wrote:
> Veja se isso te ajuda:
>
> http://icewall.org/~hjort/conv2pg/
>
> Só não está preparado para converter o tipo "LONGBLOB". Substitua-o por
> "bytea".
>
> --
> Rodrigo Hjort
> http://icewall.org/~hjort
>
>
> 2006/10/11, Alberto Ivo <[EMAIL PROTECTED] >:
> > CREATE TABLE Album
> > (
> >   album_id            INT       NOT NULL AUTO_INCREMENT,
> >   album_name           VARCHAR(255)  NOT NULL,
> >   PRIMARY KEY (album_id),
> >   INDEX album_ind (album_id)
> > );
> >
> > CREATE TABLE Image
> > (
> >   image_id            INT       NOT NULL AUTO_INCREMENT,
> >   album_id            INT       NOT NULL,
> >   image_thumb          LONGBLOB,
> >   image_full           LONGBLOB    NOT NULL,
> >   image_desc              VARCHAR(255)  NOT NULL,
> >   PRIMARY KEY (image_id),
> >   INDEX image_ind (image_id),
> >   FOREIGN KEY (album_id) REFERENCES Album(album_id)
> > );
> >
> > Pessoal, essa é uma tabela feita no MySQL, gostaria de saber como seria
> feita em postgres..
> > tipo, como são os comandos:
> > AUTO INCREMENT
> > LONGBLOB
> > INDEX
> > PRIMARY KEY
> > FOREIGN KEY
> >
> > Muito Obrigado!!!!!!
> >
> > []'s Alberto Ivo
> >
>
> _______________________________________________
> Grupo de Usuários do PostgreSQL no Brasil
> Antes de perguntar consulte o manual
> http://pgdocptbr.sourceforge.net/
>
> Para editar suas opções ou sair da lista acesse a página da lista em:
> http://pgfoundry.org/mailman/listinfo/brasil-usuarios
>
>
_______________________________________________
Grupo de Usuários do PostgreSQL no Brasil
Antes de perguntar consulte o manual
http://pgdocptbr.sourceforge.net/

Para editar suas opções ou sair da lista acesse a página da lista em:
http://pgfoundry.org/mailman/listinfo/brasil-usuarios

Responder a