我尝试根据nodejs服务器端代码中的timestamp值为azure表存储构建查询。
from = from + 'T00:00:01.000Z';
to = to + 'T00:00:01.000Z';
var query = new azure.TableQuery()
.where('Timestamp ge datetime ? and Timestamp lt datetime ? and deviceId eq ?', from,to,deviceSelected);
但是我得到了错误,
name: 'StorageError',
message: 'Syntax error at position 48 in \'Timestamp ge datetime \'2017-11-01T00:00:01.000Z\' and Timestamp lt datetime \'2017-11-02T00:00:01.000Z\' and deviceId eq \'Device1\'\'.\nRequestId:587c0e7d-0002-0090-436f-63abda000000\nTime:2017-11-22T08:57:48.4313529Z',
code: 'InvalidInput',
statusCode: 400,
requestId: '587c0e7d-0002-0090-436f-63abda000000' }
任何人都可以帮助解决构建和触发查询的问题吗? 提前谢谢。