bradgrafelman wrote:¿Qué? :p
Oh, don't mind me; I'm from Barcelona.
@, I don't have a SQLite installation handy right now, but I recall it does have a set of Information Schema views. If I'm right, then
SELECT kcu.column_name FROM INFORMATION_SCHEMA_KEY_COLUMN_USAGE kcu, INFORMATION_SCHEMA_TABLES t
JOIN kcu.constraint_name=t.constraint_name WHERE t.table_name='$tbl'
Or something not too different from that.