早上好,
我收到以下错误:
errordetail:string 400 Bad Request
filecontent:
string {" message":"查询协调器错误:query.soql.no-such-column;没有这样的专栏:T; position:地图(行 - > 1,列 - > 1020,行 - > \" SELECT physician_profile_id
,physician_profile_first_name
,physician_profile_middle_name
,physician_profile_last_name
, physician_profile_suffix
,physician_profile_alternate_first_name
,physician_profile_alternate_middle_name
,physician_profile_alternate_last_name
,physician_profile_alternate_suffix
,physician_profile_address_line_1
,physician_profile_address_line_2
,physician_profile_city
,{{ 1}},physician_profile_state
,physician_profile_zipcode
,physician_profile_country_name
,physician_profile_province_name
,physician_profile_primary_specialty
,physician_profile_ops_taxonomy_1
,physician_profile_ops_taxonomy_2
,{{1} },physician_profile_ops_taxonomy_3
,physician_profile_ops_taxonomy_4
,physician_profile_ops_taxonomy_5
,physician_profile_license_state_code_1
,physician_profile_license_state_code_2
,physician_profile_license_state_code_3
WHERE starts_with({{1} },physician_profile_license_state_code_4
) 和physician_profile_license_state_code_5
=' KNOXVILLE'和physician_profile_first_name
=' ADAMS' AND {{1 }} =' TN' LIMIT 10}
我试图做的就是给医生带上亚当斯的姓氏,这是在田纳西州诺克斯维尔的A的第一个首字母。 AND' physician_profile_first_name' =' A'会不正确的。有什么建议?我正在使用CFHTTP GET在Cold Fusion中对此进行编码,以防万一有用。
谢谢你, CL
答案 0 :(得分:0)
根据粘贴(def superltimesheet(request):
query_results = Timesheet.objects.all()
data={'query_results':query_results, 'some':'some'}
return render(request, 'hrfinance/supervisor_list_timesheet.html', data)
)中显示的错误消息,您引用了查询中不存在的列。检查查询中的字段名称与数据集中的字段名称,以确保它们全部有效。