<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/">
    <channel>
        <title>CUBRID Q&amp;A</title>
        <link>http://www.cubrid.org/?mid=questions</link>
        <description>CUBRID Q&amp;A</description>
        <language>en</language>
        <pubDate>Fri, 21 Oct 2011 02:37:10 -0800</pubDate>
        <lastBuildDate>Thu, 23 May 2013 18:14:26 -0800</lastBuildDate>
        <generator>XpressEngine 1.4.4.1</generator>
                        										        <item>
            <title>How do I drop a UNIQUE index ?</title>
            <dc:creator>ovidiuv</dc:creator>
            <link>http://www.cubrid.org/questions/435654</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/435654</guid>
                                    <description><![CDATA[<div>I ran the following commands:</div><div><br /></div><div>CREATE TABLE "ITEMS" ("N" integer, "A" integer);</div><div>CREATE UNIQUE INDEX "test_index" ON "ITEMS" ("N");</div><div>ALTER TABLE "ITEMS" DROP INDEX "
test_index";</div><div><br /></div><div>and I got the error:</div><div><div>Error description:</div><div>Index "test_index" does not exist.</div></div><div><br /></div><div>How can I remove this unique index ?</div>]]></description>
                        <pubDate>Tue, 25 Sep 2012 01:45:01 -0800</pubDate>
                        <category>index</category>
                        <category>drop unique index</category>
                        <category>ALTER TABLE</category>
                                    <slash:comments>1</slash:comments>
                    </item>
        										        <item>
            <title>How to ALTER TABLE and SET DEFAULT in CUBRID?</title>
            <dc:creator>eye</dc:creator>
            <link>http://www.cubrid.org/questions/289539</link>
            <guid isPermaLink="true">http://www.cubrid.org/questions/289539</guid>
                                    <description><![CDATA[<p>I have the following table already created in my database.</p><p></p><div editor_component="code_highlighter" code_type="Sql" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url(/modules/editor/components/code_highlighter/code.png) no-repeat top right;">CREATE TABLE "tbl_users"(<br />&nbsp;&nbsp;&nbsp;&nbsp; "id" integer AUTO_INCREMENT,<br />&nbsp;&nbsp;&nbsp;&nbsp; "email" character varying(100) NOT NULL UNIQUE,<br />&nbsp;&nbsp;&nbsp;&nbsp; "join_date" integer NOT NULL,<br />&nbsp;&nbsp;&nbsp;&nbsp; CONSTRAINT pk_tbl_users_id PRIMARY KEY("id")<br />);</div><p>I want to alter the table schema and set the default value for <span style="font-weight: bold;">join_date</span> column to be the current timestamp in UNIX time. I tried the following SQL, but I keep getting "<span style="font-weight: bold;">Syntax: syntax error, unexpected IdName</span>" error.</p><p></p><div editor_component="code_highlighter" code_type="Sql" file_path="" description="" first_line="1" collapse="false" nogutter="false" nocontrols="false" style="border: #666666 1px dotted; border-left: #22aaee 5px solid; padding: 5px; background: #FAFAFA url(/modules/editor/components/code_highlighter/code.png) no-repeat top right;">ALTER&nbsp; tbl_users ALTER&nbsp; join_date SET DEFAULT UNIX_TIMESTAMP(CURRENT_TIMESTAMP());</div><p></p><p>How should I do?</p>]]></description>
                        <pubDate>Thu, 02 Feb 2012 23:55:03 -0800</pubDate>
                        <category>SQL</category>
                        <category>ALTER TABLE</category>
                        <category>SET DEFAULT</category>
                                    <slash:comments>1</slash:comments>
                    </item>
            </channel>
</rss>
