cordova sqlite 连接查询不工作
cordova sqlite join query not working
此查询在 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);
您可以在此处显示 post 的答案示例..
sql, sqlite SELECT with inner join
示例:
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';
此查询在 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);
您可以在此处显示 post 的答案示例..
sql, sqlite SELECT with inner join
示例:
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';