SELECT
TYPE, DSMTYPE, REVISION, MODEMTYPE, FWVERSION,
MAC, TEMP, DATE, TIME, TECHNICIAN
FROM
(SELECT parameterid, parametervalue FROM Product) up
PIVOT
MAX(parametervalue) FOR parameterid IN
(TYPE, DSMTYPE, REVISION, MODEMTYPE, FWVERSION, MAC, TEMP, DATE, TIME, TECHNICIAN)) AS pvt
“PIVOT”附近的SQLite错误:语法错误“
答案 0 :(得分:1)
PIVOT
不是SQLite认可的关键字。 (它似乎特定于MSSQL。)SQLite的完整语法详见: