字段PHAM_CODE是表patient_info中的字段吗?再检查有没有写错字段名。TRY:select *, dbo.GET_PHAM_STORE_FACT(patient_info.PHAM_CODE) as          store_fact,dbo.GET_PHAM_STORE_FACT1(patient_info.PHAM_CODE) as store_fact1
  from patient_info
 where patient_info.PATIENT_ID = '11111111'