当我尝试使用此查询访问数据库时,它给了我一个错误
invalid column name 'sandeep' which is the name of the patient ie itemArray[3]
代码:
case "patient":
string queryPatientCheck = @"select *
from patient
where
[patientID]={0} and
[patientName]={1}";
queryPatientCheck = string.Format(queryPatientCheck, itemArray[2], itemArray[3]);