您好。
DB_TABLENAME ---- 数据库表名
String数组 ---- 表中数据字段名
privacy=1 ---- 查询where语句
下面是官方说明文件:
public Cursor query (String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
Since: API Level 1
Query the given table, returning a Cursor over the result set
Parameters
table The table name to compile the query against
columns A list of which columns to return Passing null will return all columns, which is discouraged to prevent reading data from storage that isn't going to be used
selection A filter declaring which rows to return, formatted as an SQL WHERE clause (excluding the WHERE itself) Passing null will return all rows for the given table
selectionArgs You may include s in selection, which will be replaced by the values from selectionArgs, in order that they appear in the selection The values will be bound as Strings
groupBy A filter declaring how to group rows, formatted as an SQL GROUP BY clause (excluding the GROUP BY itself) Passing null will cause the rows to not be grouped
having A filter declare which row groups to include in the cursor, if row grouping is being used, formatted as an SQL HAVING clause (excluding the HAVING itself) Passing null will cause all row groups to be included, and is required when row grouping is not being used
orderBy How to order the rows, formatted as an SQL ORDER BY clause (excluding the ORDER BY itself) Passing null will use the default sort order, which may be unordered
limit Limits the number of rows returned by the query, formatted as LIMIT clause Passing null denotes no LIMIT clause
Returns
A Cursor object, which is positioned before the first entry Note that Cursors are not synchronized, see the documentation for more details
Ctrl+S。SQLyog是一个快速而简洁的图形化管理MYSQL数据库的工具,Query是在数据库中寻找某一特定文件、网站、记录或一系列记录,由搜索引擎或数据库送出的消息,sqlyog保存query是Ctrl+S方式。
1、导入jQuery所对应的js包,然后引入路径
2、一切jQuery都以
$(function(){// do something
});
3、在function中进行 *** 作
以上就是关于SQLiteDatabase中的query方法里的各个参数是干什么的全部的内容,包括:SQLiteDatabase中的query方法里的各个参数是干什么的、sqlyog保存query、java中query怎么使用等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)