SELECTDISTINCT attributevalue ASVALUE,VALUEASname FROM Entity e INNERJOIN StringMap sm ON e.objecttypecode = sm.objecttypecode AND sm.attributename = 'new_paymenttype' AND AttributeValue = '1' WHERE logicalname = 'new_vehiclebenchmark'
去掉 AttributeValue筛选为查找所有对应值
1 2 3 4 5 6 7 8
SELECTDISTINCT attributevalue ASVALUE,VALUEASname FROM Entity e INNERJOIN StringMap sm ON e.objecttypecode = sm.objecttypecode AND sm.attributename = 'new_paymenttype' WHERE logicalname = 'new_vehiclebenchmark'