我有sqllite數據庫三個表:選擇值
topicTable
-----------
_id
topic
table1
--------
_id
topicid
topic_text
description
table2
-------
_id
topicid
topic_translation
什麼我做的是,當點擊某一主題我想從 table1
和topic_translation
topic_text,description
從table2
什麼我做的是:
MY_QUERY = "SELECT * FROM "+TABLE1+" a INNER JOIN "+ TABLE2+" b ON a.topicid=b.topicid WHERE a.topicid="+TOPICID;
Cursor cursor = database.rawQuery(MY_QUERY,null);
我的代碼有什麼問題?
你有什麼問題? – 2014-08-27 17:32:27
我收不到。 – 2014-08-27 17:36:05
運行該查詢時得到了什麼? – mmlooloo 2014-08-27 17:43:11