Em 30/08/11, rogerio dandrea<[email protected]> escreveu: > Que sintaxe mais marota... funcionou > > COPY public."RACA" FROM '/home/ro/Documentos/base/RACA.csv' CSV HEADER; > e tambem mudei o arquivo csv de tabulação para comma(,) como separador > > > Agora vou brincar um pouco com o comando copy para importar outras tabelas, > qualquer coisa eu aviso > Valeu pela Ajuda. > Só mais uma coisa o padrão para nome de campo no postgresql é minuscula? >
Do manual: http://www.postgresql.org/docs/current/interactive/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS "Quoting an identifier also makes it case-sensitive, whereas unquoted names are always folded to lower case. For example, the identifiers FOO, foo, and "foo" are considered the same by PostgreSQL, but "Foo" and "FOO" are different from these three and each other. (The folding of unquoted names to lower case in PostgreSQL is incompatible with the SQL standard, which says that unquoted names should be folded to upper case. Thus, foo should be equivalent to "FOO" not "foo" according to the standard. If you want to write portable applications you are advised to always quote a particular name or never quote it.) " Osvaldo _______________________________________________ pgbr-geral mailing list [email protected] https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral
