SQLite错误附近" PIVOT":语法错误

时间:2011-09-15 04:30:25

标签: sqlite

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错误:语法错误“

1 个答案:

答案 0 :(得分:1)

PIVOT不是SQLite认可的关键字。 (它似乎特定于MSSQL。)SQLite的完整语法详见:

http://www.sqlite.org/lang.html