开发者

SQLite error near "PIVOT": syntax error

开发者 https://www.devze.com 2023-04-05 04:10 出处:网络
SELECT TYPE, DSMTYPE, REVISION, MODEMTYPE, FWVERSION, MAC, TEMP, DATE, TIME, TECHNICIAN FROM (SELECT parameterid, parametervalue FROM Product) up
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, FWVERSIO开发者_运维百科N, MAC, TEMP, DATE, TIME, TECHNICIAN)) AS pvt

SQLite error near "PIVOT": syntax error"


PIVOT is not a keyword recognized by SQLite. (It appears to be specific to MSSQL.) The full syntax for SQLite is detailed at:

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

0

精彩评论

暂无评论...
验证码 换一张
取 消