sql - Sqllite PEG parser to support BigQuery SQL syntax
问题描述
I'm using SqLite Parser to parse my SQL to JSON. We are now using Google BQ and some SQL commands are failing in this parser, for example:
select EXTRACT(MONTH FROM DATE_SUB(CURRENT_DATE(), INTERVAL 1 MONTH))
This can be easily reproduced by using PEG online which generate this error on the above SQL
Line 1, column 15: Expected Semicolon or end of input but "(" found.
解决方案
推荐阅读
- c# - 访问已注销配置文件的注册表值
- html - 如何在此 HTML 中定位图像?这是滑块革命 jquery 插件
- c - 在共享内存 c 中创建 char 的二维数组
- angular - 打开 Angular Material Autocomplete(mat-autocomplete) 总是在输入下
- ruby-on-rails-5 - 在rails中的整个表上添加非空约束
- wso2 - 如何将组从用户数据存储迁移到 WSO2 身份服务器?
- python - 如何将数据框列的分类值转换为 sckikit-learn 中的单热编码列?
- filenet-p8 - IBM FileNet 设置限制上传文件
- php - 注意:尝试在第 16 行的 C:\xampp\htdocs\VENDO-ECOLOGICO\action.php 中获取非对象的属性 'num_rows'
- r - 在 r 中使用 ifelse 进行变异