SQL 行列转换联查 求教高手
表A
FieldId Type FieldCode FieldName sampleNo
--------------- ----------- ------------------ ----------------- -------
GIS_Country 3 NULL Country 01
GIS_Province 3 NULL Province 01
GIS_City 3 NULL City 01
GIS_Area 3 NULL Area 01
SHKSA01 1 GISInt NULL 01
表B
sampleNo Country Province City Area GISInt
----------- --------- --------- -------- ------- ---------
01 china fujian xiamen jimei 1