【发布时间】:2015-01-30 07:57:21
【问题描述】:
-
SQL:
select a.a, a.b, b.c from a, b where a.a=b.a; -
SQL:
select '*' from table; -
SQL:
select '*' from table1, table2 where table1.a=table2.a; -
SQL:
select '*' from table1 left join table2 on table1.a=table2.a;
案例1是知道sql结果集中的列名(OK)。
情况 2 可以找到列名(用于pragma table_info (table);)(确定)。
但是情况3、4是如何获取结果集中column count的列名呢?
【问题讨论】:
-
如果您只想查看结果集,只需调用 DatabaseUtils.dumpCursor()
标签: android sqlite select join