当我在Android中执行此操作时:
sqlite> SELECT * FROM secure WHERE name='mock_location' OR value=2.2 ORDER BY value ASC;
我明白了:
44|mock_location|1
56|facelock_liveliness_recognition_threshold|2.2
但是我想在第一行中使用(*)的列名,如下所示:
_id|name|value
44|mock_location|1
56|facelock_liveliness_recognition_threshold|2.2
如何在单个查询中执行此操作?
答案 0 :(得分:1)
我做了这个并且有效:
sqlite3 -header /data/data/com.android.providers.settings/databases/settings.db "SELECT * FROM secure WHERE name='mock_location' OR value=2.2 ORDER BY value ASC;"