伙计们我有一张包含以下数据的表格
F$2051032568
F$2051032568
22342342343
3242432432432
5745745
45734554
Run Code Online (Sandbox Code Playgroud)
当我写一个oracle sql select查询时,我想只获取不以或以F $开头的数据
22342342343
3242432432432
5745745
45734554
Run Code Online (Sandbox Code Playgroud)
请告诉我,怎么做.
实际上它是相当棘手的,没有在sql查询中的where条件中使用$,我需要获取那些不匹配的数据F$
尝试:
select col1 from tabl1 where col1 not like '%F$%';
Run Code Online (Sandbox Code Playgroud)
我不确定,如果我理解你的编辑:
select col1 from tabl1 where col1 not like ('%F' || chr(36) || '%');
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2498 次 |
| 最近记录: |