the reason that i talk about how to get ROWID of record is that i want to access specific record by the FASTEST way!
i read the document of sqlite again, and find if i define a field(e.g. social_num) with the feature of "*integer primary key*" , i can access record by the value of the field in the fastest way. is it true!? the orignal descripiton follows, "Searching for a record with a specific rowid, or for all records with rowids within a specified range is around twice as fast as a similar search made by specifying any other PRIMARY KEY or indexed value." "*With one exception*, if a table has a primary key that consists of a single column, and the declared type of that column is "INTEGER" in any mixture of upper and lower case, then the column becomes an alias for the rowid." "Rowid values may be modified using an UPDATE statement in the same way as any other column value can, either using one of the built-in aliases ("rowid", "oid" or "_rowid_") or *by using an alias* created by an integer primary key. " -- View this message in context: http://sqlite.1065341.n5.nabble.com/how-to-move-around-records-in-sqlite-as-the-way-as-in-CDaoRecordset-of-MFC-tp66191p66276.html Sent from the SQLite mailing list archive at Nabble.com. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users