<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: postgre code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 07 Sep 2008 05:06:56 GMT</pubDate>
    <description>DZone Snippets: postgre code</description>
    <item>
      <title>PostgreSQL table structure with Information_Schema</title>
      <link>http://snippets.dzone.com/posts/show/816</link>
      <description>&lt;code&gt;&lt;br /&gt;SELECT COLUMN_NAME,&lt;br /&gt;       DATA_TYPE,&lt;br /&gt;       CHARACTER_MAXIMUM_LENGTH,&lt;br /&gt;       NUMERIC_PRECISION,&lt;br /&gt;       NUMERIC_SCALE,&lt;br /&gt;       IS_NULLABLE,&lt;br /&gt;       SUBSTR(COALESCE(COLUMN_DEFAULT, ''), 1, 8) = 'nextval(' AS IS_AUTOINCREMENT,&lt;br /&gt;       COLUMN_DEFAULT&lt;br /&gt;FROM   INFORMATION_SCHEMA.COLUMNS&lt;br /&gt;WHERE  TABLE_NAME = 'xxxxxxxx'&lt;br /&gt;ORDER BY ORDINAL_POSITION&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Tue, 18 Oct 2005 17:50:04 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/816</guid>
      <author>ms_michel (Michel)</author>
    </item>
  </channel>
</rss>
