如何将此 SELECT 语句转换为 SQLite 语句?
SELECT count(`listId`) AS countP,
DATE_FORMAT( DATE_ADD(DATE_FORMAT(timestamp, '%Y-%m-%d %H:00:00'),
INTERVAL IF( MINUTE( timestamp )<30, 0, 1) HOUR), '%H:30') AS hourP
FROM `polldata`
WHERE `gcId`=01
AND `listId`=02
GROUP BY hourP
ORDER BY hourP
LIMIT 0, 30