请问一下,正常query的时候报错:Function and is not a unary operator

做正常query的时候报错:Function and is not a unary operator

select  
  a as code
from    data 
where   instrumentkind != 'Future'
  and instrumentkind != 'Combo' 
  and instrumentkind != 'VolatilityTrade'
context by instrument_code csort time limit 1
请先 登录 后评论

1 个回答

Shena Mao

这个是换行导致的问题,改成以下就可以:

select a as code
from    data 
where   instrumentkind != 'Future' and instrumentkind != 'Combo' and instrumentkind != 'VolatilityTrade'
context by instrument_code csort time limit 1
请先 登录 后评论