从 android sqlite 中获取boolean值

原文:http://stackoverflow.com/questions/4088080/android-sqlite-get-boolean-from-database

 

 

目标:从 android sqlite 中获取boolean值

方法:

boolean value = cursor.getInt(boolean_column_index)>0;

 

IT技术网站推荐 ]

(1)StackOverflow : http://stackoverflow.com/

(2)GitHub : https://github.com/

 

你可能感兴趣的:(android SQLite)