Sil*_*san 0 android android-sqlite
我必须选择地址列的大小/长度(字符数)大于 12 的位置。有人可以帮我解决这个问题吗?
String selection = "address LIKE ?";
String[] selection_args = {};
cr- content resolver
Cursor cursor = cr.query(messageUri, null, selection, selection_args, "date DESC");
Run Code Online (Sandbox Code Playgroud)
你是这个意思吗?
SELECT address
FROM your_table
WHERE LENGTH(address) > 12
Run Code Online (Sandbox Code Playgroud)
如果是,请尝试:
String selection = "LENGTH(address) > 12";
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1172 次 |
| 最近记录: |