Dragonliu2018 commented on issue #35693:
URL: https://github.com/apache/doris/issues/35693#issuecomment-2141966502

   the underscore (`_`) represents a single character. refer to [doris - 
like](https://doris.apache.org/zh-CN/docs/1.2/sql-manual/sql-functions/string-functions/like/)
   I guess you want to use the literal underscore (`_`), so u should prepend it 
with a backslash: `\_`.  
   such as:
   ```sql
   mysql> select 'DCache.LiveLinkWanzhePanelDataKKV_gzt_MKVCacheServer3' like 
'DCache.LiveLinkWanzhePanelData_%MKVCacheServer%';
   
+------------------------------------------------------------------------------------------------------------------+
   | ('DCache.LiveLinkWanzhePanelDataKKV_gzt_MKVCacheServer3' like 
'DCache.LiveLinkWanzhePanelData_%MKVCacheServer%') |
   
+------------------------------------------------------------------------------------------------------------------+
   |                                                                            
                                    1 |
   
+------------------------------------------------------------------------------------------------------------------+
   1 row in set (0.00 sec)
   ```
   
   ```sql
   mysql> select 'DCache.LiveLinkWanzhePanelDataKKV_gzt_MKVCacheServer3' like 
'DCache.LiveLinkWanzhePanelData\_%MKVCacheServer%';
   
+-------------------------------------------------------------------------------------------------------------------+
   | ('DCache.LiveLinkWanzhePanelDataKKV_gzt_MKVCacheServer3' like 
'DCache.LiveLinkWanzhePanelData\_%MKVCacheServer%') |
   
+-------------------------------------------------------------------------------------------------------------------+
   |                                                                            
                                     0 |
   
+-------------------------------------------------------------------------------------------------------------------+
   1 row in set (0.00 sec)
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to