来自Cold Fusion的Socrata查询,其中$ where start_with()

时间:2017-08-30 14:48:48

标签: socrata cfhttp

早上好,

我收到以下错误:

errordetail:string 400 Bad Request

filecontent:

string {" message":"查询协调器错误:query.soql.no-such-column;没有这样的专栏:T; position:地图(行 - > 1,列 - > 1020,行 - > \" SELECT physician_profile_idphysician_profile_first_namephysician_profile_middle_namephysician_profile_last_namephysician_profile_suffixphysician_profile_alternate_first_namephysician_profile_alternate_middle_namephysician_profile_alternate_last_namephysician_profile_alternate_suffixphysician_profile_address_line_1physician_profile_address_line_2physician_profile_city,{{ 1}},physician_profile_statephysician_profile_zipcodephysician_profile_country_namephysician_profile_province_namephysician_profile_primary_specialtyphysician_profile_ops_taxonomy_1physician_profile_ops_taxonomy_2,{{1} },physician_profile_ops_taxonomy_3physician_profile_ops_taxonomy_4physician_profile_ops_taxonomy_5physician_profile_license_state_code_1physician_profile_license_state_code_2physician_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

1 个答案:

答案 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) )中显示的错误消息,您引用了查询中不存在的列。检查查询中的字段名称与数据集中的字段名称,以确保它们全部有效。