Reputation: 2181
I want my app to add a column to an existing index if that column hasn't already been added to the index.
Is there a way to test if the column exists in the index, or am I better off dropping and rebuilding the entire index including the new column?
Cheers guys.
Upvotes: 1
Views: 90
Reputation: 180070
To get information about the columns in an index, use PRAGMA index_info.
Upvotes: 1