Terse little DB, isn't it?<br><br>'preciate it.<br>-- <br>dz<br><br><div><span class="gmail_quote">On 3/9/06, <b class="gmail_sendername">Keegan Quinn</b> &lt;<a href="mailto:keegan@thebasement.org">keegan@thebasement.org</a>
&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thu, Mar 09, 2006 at 05:37:06AM -0500, Dan Ziemecki wrote:<br>&gt; Can I get one of you postgre aficionados to translate this SQL statement
<br>&gt; into whatever works on postgre for me?<br><br>Yeah.<br><br>&gt; DROP TABLE IF EXISTS subscriptions_holding;<br><br>Not sure about that &quot;if exists&quot; clause.<br><br>DROP TABLE subscriptions_holding; works though.
<br><br>&gt; CREATE TABLE subscriptions_holding (<br>&gt;&nbsp;&nbsp; rid int(11) NOT NULL auto_increment COMMENT 'Unique row ID',<br>&gt;&nbsp;&nbsp; content blob NOT NULL COMMENT 'The node array',<br>&gt;&nbsp;&nbsp; type tinytext NOT NULL COMMENT 'New node or comment',
<br>&gt;&nbsp;&nbsp; op tinytext NOT NULL COMMENT 'The operation on the node',<br>&gt;&nbsp;&nbsp; uid int(11) NOT NULL default '0' COMMENT 'The person performing the<br>&gt; operation',<br>&gt;&nbsp;&nbsp; PRIMARY KEY&nbsp;&nbsp;('rid')<br>&gt; );<br><br>CREATE TABLE subscriptions_holding (
<br>&nbsp;&nbsp;rid SERIAL,<br>&nbsp;&nbsp;content OID NOT NULL,<br>&nbsp;&nbsp;type TEXT NOT NULL,<br>&nbsp;&nbsp;op TEXT NOT NULL,<br>&nbsp;&nbsp;uid INTEGER NOT NULL DEFAULT 0<br>);<br>COMMENT ON COLUMN subscriptions_holding.rid IS 'Unique row ID';<br>COMMENT ON COLUMN subscriptions_holding.content IS 'The node array';
<br>COMMENT ON COLUMN subscriptions_holding.type IS 'New node or comment';<br>COMMENT ON COLUMN subscriptions_holding.op IS 'The operation on the node';<br>COMMENT ON COLUMN subscriptions_holding.uid IS 'The person performing the operation';
<br><br>Tested on PostgreSQL 7.4.<br><br>HTH,<br><br>--<br>Keegan Quinn&nbsp;&nbsp;&lt;<a href="mailto:keegan@thebasement.org">keegan@thebasement.org</a>&gt;<br>CEO, Producer<br>the basement productions<br><a href="http://www.thebasement.org">
http://www.thebasement.org</a><br><br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.4.1 (GNU/Linux)<br><br>iD8DBQFEEAd1RMUr35HwZXoRAvnhAJ9GplHEFxZllWJxzkklWMdA9kEFegCdHUy+<br>9MqSltxpHgT7J5RvSM3c3CE=<br>=mfL1<br>
-----END PGP SIGNATURE-----<br><br><br></blockquote></div><br>