- Previous thread: [sqlite] 2 columns as primary key?
- Next thread: [sqlite] Deleting database content : SQLite3 API
- Threads sorted by date: sqlite 200905
create table tablename =
(
=A0=A0=A0=A0=A0=A0=A0 colname1 coltype,
=A0=A0=A0=A0=A0=A0=A0 colname2 coltype,
=A0=A0=A0=A0=A0=A0=A0 colname3 coltype,
=A0=A0=A0=A0=A0=A0=A0 PRIMARY KEY(colname1 asc, colname2 asc)
)
--- On Fri, 5/29/09, Pavel Ivanov wrote:
From: Pavel Ivanov
Subject: Re: [sqlite] 2 columns as primary key?
To: "General Discussion of SQLite Database"
Date: Friday, May 29, 2009, 10:54 PM
What create table statement did you use?
Pavel
2009/5/29 "Andr=E9s G. Aragoneses" :
> I just tried to create a primary key with 2 columns and got this error:
>
> "sqlite error" "table X has more than one primary key"
>
>
> Doesn't SQLite support this?? :o
>
> =A0 =A0 =A0 =A0Andres
>
> --
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
(
=A0=A0=A0=A0=A0=A0=A0 colname1 coltype,
=A0=A0=A0=A0=A0=A0=A0 colname2 coltype,
=A0=A0=A0=A0=A0=A0=A0 colname3 coltype,
=A0=A0=A0=A0=A0=A0=A0 PRIMARY KEY(colname1 asc, colname2 asc)
)
--- On Fri, 5/29/09, Pavel Ivanov wrote:
From: Pavel Ivanov
Subject: Re: [sqlite] 2 columns as primary key?
To: "General Discussion of SQLite Database"
Date: Friday, May 29, 2009, 10:54 PM
What create table statement did you use?
Pavel
2009/5/29 "Andr=E9s G. Aragoneses" :
> I just tried to create a primary key with 2 columns and got this error:
>
> "sqlite error" "table X has more than one primary key"
>
>
> Doesn't SQLite support this?? :o
>
> =A0 =A0 =A0 =A0Andres
>
> --
>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
>
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
Related Threads
- Activation of TrueType hinting in 4.5 - openbsd
- [grails-user] I have URL in tomcat can work , But it cant work in Jetty - grails
- Flashplayer crashes on initialization (i386) - fedora
- FW: [squid-users] Tproxy Help // Transparent works fine - squid
- NEW: TeXworks - openbsd
- [lto] Fix streaming of clone nodes - gcc
- [PHP] Calendar - php
- hash of hash? - ruby
- Dolphin tabs F11 - fedora
- [Patch] gitignore: ignore gcov output files - kernel
- Translate SQL query into $conditions - cakephp
- Get name of class without instance - python