<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>UZED &#187; MS Access</title>
	<atom:link href="http://uzed.com.br/tag/ms-access/feed/" rel="self" type="application/rss+xml" />
	<link>http://uzed.com.br</link>
	<description>Informação Livre!</description>
	<lastBuildDate>Wed, 14 Jul 2010 06:03:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Importando MS Access (mdb) para o Postgres</title>
		<link>http://uzed.com.br/importando-ms-access-mdb-para-o-postgres/</link>
		<comments>http://uzed.com.br/importando-ms-access-mdb-para-o-postgres/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 11:27:45 +0000</pubDate>
		<dc:creator>zedmaster</dc:creator>
				<category><![CDATA[Informática]]></category>
		<category><![CDATA[Postgres]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[mdbtools]]></category>
		<category><![CDATA[MS Access]]></category>
		<category><![CDATA[PostgreSQL]]></category>

		<guid isPermaLink="false">http://uzed.com.br/?p=138</guid>
		<description><![CDATA[Neste exemplo veremos como importar um MS Access (mdb) para o Postgres usando Linux (Debian neste caso) , o shell e o mdbtools. Instalando o visualizador de mdb: # apt-get install mdbtools-gmdb mdbtools Abrindo o mdbtools (ou menu Aplicalções->Produtividade->MDB Viewer): Exportando para CSV: Exportando os schemas: Para importar os dados do CSV: # psql public=# [...]]]></description>
			<content:encoded><![CDATA[<p>Neste exemplo veremos como importar um MS Access (mdb) para o Postgres usando Linux (Debian neste caso) , o shell e o mdbtools.</p>
<p>Instalando o visualizador de mdb:<br />
<code><br />
# apt-get install  mdbtools-gmdb mdbtools<br />
</code></p>
<p>Abrindo o mdbtools (ou menu Aplicalções->Produtividade->MDB Viewer):<br />
<div id="attachment_139" class="wp-caption alignnone" style="width: 310px"><a href="http://uzed.com.br/wp-content/uploads/2008/12/mdb2postgres_01.jpg"><img src="http://uzed.com.br/wp-content/uploads/2008/12/mdb2postgres_01-300x257.jpg" alt="Executando o MDB VIewer" title="mdb2postgres_01" width="300" height="257" class="size-medium wp-image-139" /></a><p class="wp-caption-text">Executando o MDB VIewer</p></div></p>
<p>Exportando  para CSV:<br />
<div id="attachment_143" class="wp-caption alignnone" style="width: 310px"><a href="http://uzed.com.br/wp-content/uploads/2008/12/mdb2postgres_02.jpg"><img src="http://uzed.com.br/wp-content/uploads/2008/12/mdb2postgres_02-300x212.jpg" alt="Exportando para CSV" title="mdb2postgres_02" width="300" height="212" class="size-medium wp-image-143" /></a><p class="wp-caption-text">Exportando para CSV</p></div></p>
<p>Exportando os schemas:<br />
<a href="http://uzed.com.br/wp-content/uploads/2008/12/mdb2postgres_03.jpg"><img src="http://uzed.com.br/wp-content/uploads/2008/12/mdb2postgres_03-300x213.jpg" alt="" title="mdb2postgres_03" width="300" height="213" class="alignnone size-medium wp-image-145" /></a></p>
<p>Para importar os dados do CSV:<br />
<code><br />
# psql<br />
public=# \copy teste FROM teste.csv;<br />
ou<br />
public=# \copy teste FROM teste.csv  WITH DELIMITER AS ';' CSV QUOTE AS '"'<br />
</code></p>
<h4>Referência</h4>
<ul>
<li><a href="http://www.postgresql.org/docs/8.3/interactive/sql-copy.html">www.postgresql.org/docs/8.3/interactive/sql-copy.html</a></li>
<li><a href="http://www.postgresql.org/docs/8.3/interactive/app-psql.html">www.postgresql.org/docs/8.3/interactive/app-psql.html</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://uzed.com.br/importando-ms-access-mdb-para-o-postgres/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
