Sam Carleton <scarle...@gmail.com> wrote:
> On May 8, 2011, at 11:06 AM, "Jay A. Kreibich" <j...@kreibi.ch> wrote:
> 
>> On Sun, May 08, 2011 at 11:00:29AM -0400, Sam Carleton scratched on the wall:
>> 
>>> Is there a way to find out the id of a particular column?
>> 
>>  sqlite3_column_name()
> 
> I want to go the other way: I have the string name, I need the index of the 
> column, same concept as
> sqlite3_bind_parameter_index(). 

You'll have to enumerate all columns, get the name of each, and compare it with 
the desired name.
-- 
Igor Tandetnik

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to