我已經創建了sqlite的兩種觀點沒有這樣的列錯誤 - Android的,但是當我創建第二個觀點 我收到錯誤的意見
沒有這樣的Coulmn:template_contact_info.tmp_text文本和 template_contact_info .tmp_link作爲鏈接
儘管這兩列都出現在template_contact_info中,並且template_contact_view已成功創建。但仍然不知道爲什麼我沒有這樣的列錯誤。
這裏的景色代碼
首先查看
db.execSQL("CREATE VIEW IF NOT EXISTS
template_contact_info AS
SELECT
template_info.tmp_text as tmp_text ,
template_info.tmp_link as tmp_link ,
template_info.tmp_id as temp_id ,
template_info.tmp_type as tmp_type ,
template_contact._id as _id
from template_info , template_contact
where template_info.tmp_id = template_contact.tmp_id");
第二個視圖//我在這裏得到一個錯誤
db.execSQL("CREATE VIEW IF NOT EXISTS
template_contact_assign AS SELECT
contact_info.c_number as number ,
contact_info.c_name as name ,
contact_info.c_id as conid,
contact_info._id as cid,
template_contact_info.tmp_type as type ,
template_contact_info.temp_id as tempid ,
template_contact_info.tmp_text as text ,
template_contact_info.tmp_link as link
FROM contact_info LEFT JOIN template_contact_info
ON contact_info._id = template_contact_info._id");
請發表您的選擇查詢... – MAC
其表的選擇查詢? – Hunt
查詢你在哪裏得到這個錯誤。 – MAC