是否可以像变量一样传递列名。请编辑此代码。
var columnname=hhSanitHouseType;
var operator = ...;
var textvalue = ...;
layer.setQuery("SELECT 'geometry',hhSanitHouseType FROM " + tableid + " WHERE 'hhSanitHouseType'" + operator + " '" + textvalue + "'");
是否可以像变量一样传递列名。请编辑此代码。
var columnname=hhSanitHouseType;
var operator = ...;
var textvalue = ...;
layer.setQuery("SELECT 'geometry',hhSanitHouseType FROM " + tableid + " WHERE 'hhSanitHouseType'" + operator + " '" + textvalue + "'");