java SQLite复合密钥错误
为什么我在下面的陈述中会出现错误
create table if not exists patient_to_prescs(
patient_id INTEGER NOT NULL REFERENCES patients_table(id)
presc_id INTEGER NOT NULL REFERENCES prescs_table(id)
PRIMARY KEY(patient_id, presc_id))
这是安卓系统,错误是
near "prescs_id": syntax error(code 1)
共 (0) 个答案