SAS里INDEX, INDEXC和SCAN的区别
来源:互联网 发布:网站seo分析工具 编辑:程序博客网 时间:2024/05/14 20:24
SCAN只能用于CHAR类型的搜索。而INDEX, INDEXC不受此局限。
INDEX (S,S1)表示在S1中搜索S。
INDEXC(S,S1-1)同样是在S1中搜索S。另,INDEXC可以搜索一些在文字里的奇怪的符号,例如“-”。
In SAS,
the INDEX() function will scan a string and return the location of a substring. So for example INDEX(“Alabama”,”bam”) would return 4, since “bam” starts at the 4th letter of the word “Alabama.”
INDEXC(“Alabama”,”bam”) returns 3… Huh?
The INDEXC() function takes the list of characters in the string after the comma and searches for the first instance of any of them, thus when it encounters the lower case “a,” at the third character, it returns that index. (If these were all uppercase, it would return a 1).
This is useful if you need to find any instances of special characters. For example, searching a variable field called “phone_number” for parentheses or dashes could be done with INDEXC(phone_number,”()-“).
0 0
- SAS里INDEX, INDEXC和SCAN的区别
- Index Seek和Index Scan的区别以及适用情况
- Oracle索引之index full scan 和index fast full scan的区别
- index unique scan 与index range scan等的区别
- index unique scan 与index range scan等的区别
- PostgreSQL index scan,bitmap index scan区别
- INDEX SKIP SCAN和INDEX FULL SCAN
- INDEX SKIP SCAN 和 INDEX RANGE SCAN
- Index Seek和Index Scan
- INDEX FULL SCAN 或 INDEX FAST FULL SCAN区别
- Oracle之执行计划index fullscan和index fast full scan区别
- INDEX FAST FULL SCAN和INDEX FULL SCAN
- 关于index fast full scan 和 index full scan
- index range scan和index fast full scan
- 为哈index fast full scan与full table scan的plan里显示的Bytes一样
- 深入理解Oracle索引(2):INDEX UNIQUE SCAN,INDEX FULL SCAN和INDEX FAST FULL SCAN
- MySQL的loose index scan
- index range scan,index fast full scan,index skip scan发生的条件
- Android手机截屏并上传到电脑
- Android 生成so
- 计算器——C++实现
- 计算回文子序列(Java语言,穷举法,递归)
- mac brew安装遇到的找不到: command not found
- SAS里INDEX, INDEXC和SCAN的区别
- maven实现storm实例项目
- oracle中普通用户如何查看自己登录的数据库名称?这个用户与scott权限相同,无法切换到sys下面!没有权限查看v$database和v$instance
- 比较分析 Spring AOP 和 AspectJ 之间的差别
- select from where 格式详解
- Jetbrains tomcat css文件路径错误
- 学密码学一定得学程序
- python 遍历目录下所有文件,并判断文件类型
- 设计模式 - 工厂模式