another way
"SELECT rowid FROM MyTable LIMIT 1"
the column name returned will be the Integer Primary Key
StanD
sd at sqlight.com
- Original Message -
From: "Mario Frasca" <[EMAIL PROTECTED]>
To:
Sent: Monday, August 07, 2006 9:33 AM
Subject: Re: [sqlit
Nemanja Corlija wrote:
I think in any other case unique index would be created as expected.
sqlite> drop table test;
sqlite> create table test (ni integer, pk_name varchar(32) primary key,
info integer);
sqlite> pragma index_list(test);
0|sqlite_autoindex_test_1|1
sqlite> pragma table_info(t
On 8/7/06, Mario Frasca <[EMAIL PROTECTED]> wrote:
I was a bit wondering: does the declaration 'primary key' actually
produce an indexing? or does that happen only if I explicitly ask for a
(unique) index?
It usually does create unique index for you. But in this case, INTEGER
PRIMARY KEY, it o
Nemanja Corlija wrote:
If you turn the headers on (.header ON) you'll see that the last
column of table_info() output is "pk".
This column indicates weather or not the table column in question is
part of primary key.
Though that last column of table_info() pragma is missing from
documentation
On 8/7/06, Mario Frasca <[EMAIL PROTECTED]> wrote:
hallo, list...
how do I get primary key information about a table?
[EMAIL PROTECTED]:~$ sqlite3 /data/mariof/test.db
SQLite version 3.3.6
Enter ".help" for instructions
sqlite> drop table test;
sqlite> create table test (pk integer primary key,
hallo, list...
how do I get primary key information about a table?
[EMAIL PROTECTED]:~$ sqlite3 /data/mariof/test.db
SQLite version 3.3.6
Enter ".help" for instructions
sqlite> drop table test;
sqlite> create table test (pk integer primary key, name varchar(32),
info integer);
sqlite> create u
6 matches
Mail list logo