Search Postgresql Archives

Re: JDBC using REFERENCES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sunday, November 24, 2024, Arbol One <ArbolOne@xxxxxxxxxx> wrote:


                sql.append("index SERIAL NOT NULL, ");
                sql.append("id TEXT PRIMARY KEY, ");

                sql.append("CONSTRAIN id PRIMARY KEY (id)");
<== Error
                         


This is quite confusing, having the index column be serial but not PK (or even unique…) while the id column is the PK, which you’ve redundantly specified.

David J.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]

  Powered by Linux