cordova sqlite join query not working

好久不见. 提交于 2019-12-25 09:04:21

问题


This query is not working in cordova sqlite :

tx.executeSql("SELECT *
                     FROM cc_user_complaint_status 
                     INNER JOIN cc_manage_departments ON
                     cc_user_complaint_status.department_id = cc_manage_departments.dep_id",[], user_success, user_error);

回答1:


you can show answer that post here Example..

sql, sqlite SELECT with inner join

Example:

SELECT doctors.doctor_id,doctors.doctor_name,visits.patient_name             
FROM doctors  
INNER JOIN visits          
ON doctors.doctor_id=visits.doctor_id  
WHERE doctors.degree='MD';


来源:https://stackoverflow.com/questions/42712727/cordova-sqlite-join-query-not-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!