[ 
https://issues.apache.org/jira/browse/IOTDB-4792?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17626080#comment-17626080
 ] 

Haonan Hou commented on IOTDB-4792:
-----------------------------------

在%前加上转义符号呢?

> export-csv.bat uses like syntax exception
> -----------------------------------------
>
>                 Key: IOTDB-4792
>                 URL: https://issues.apache.org/jira/browse/IOTDB-4792
>             Project: Apache IoTDB
>          Issue Type: Bug
>          Components: csv
>    Affects Versions: master branch
>            Reporter: 任宇华
>            Priority: Major
>
> ./tools/export-csv.bat -h 127.0.0.1 -p 6667 -u root -pw root -td ./ -q 
> "SELECT * FROM root.ws.ln where t_txt like '%cd%';"
>  
> 在使用like语法时,会将  %cd%  转换为当前系统路径传递给iotdb,sql就会被转换为
>  
> SELECT * FROM root.ws.ln where t_txt like 
> 'H:\environment\\iotdb\\apache-iotdb-0.14.0-SNAPSHOT-all-bin'; 
>  
> 导致失败,同时在bat的语法中,还有很多环境变量也是这样



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to