Recipe 6.7. Extracting Initials from a Name
1. translate把要改的挑出
2.replace掉
You want convert a full name into initials. Consider the following name:
Stewie Griffin
You would like to return:
S.G.
select replace ( translate (ename, 'abcdefghijklmnopqrstuvwxyz',rpad('a',26,'a.')),'a','' )
from emp_1
where esal = '2000'
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/23895263/viewspace-681368/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- cannot import name ‘multiarray‘ from ‘numpy.core‘Import
- ImportError: cannot import name ‘BaseQuery‘ from ‘flask_sqlalchemy‘ImportErrorFlaskSQL
- Spark Extracting,transforming,selecting featuresSparkORM
- 解決 ImportError: cannot import name 'imread' from 'scipy.misc'ImportError
- ImportError: cannot import name 'get_ora_doc' from partially initialized moduleImportErrorZed
- 5.編寫recipe
- The database owner SID recorded in the master database differs from the database owner SID recorded in database 'DB_NAME'DatabaseAST
- Deployer recipe中Laravel配置檔案Laravel
- 使用 Recipe 安裝 SAP Commerce CloudCloud
- 軟體專案管理 6.7.引數估演算法專案管理演算法
- 論文翻譯:Extracting Relational Facts by an End-to-End Neural Model with Copy Mechanism
- WPF筆記3——x:Name 與 Name筆記
- Oracle修改instance_name、db_name、db_unique_name、service_namesOracle
- 使用新版flask-script時報錯No module named flask._compat和cannot import name ‘_request_ctx_stack‘ from ‘flask‘FlaskImport
- SAP PP C201使用ECR建立Recipe主資料
- IDBDatabase.nameDatabase
- IDBObjectStore.nameObject
- Python(Path().name)Python
- From now on
- if __name__==”__main__”:AI
- File name 屬性
- if __name__ == ‘__main__‘AI
- window.name 用法
- ‘map’ does not name a type
- Seinfeld Netflix episode name
- 神From不再 From Software的內憂與外患
- SAP PP使用ECR去修改Recipe主資料,報錯:Generation not supported
- from cmake make
- Array.from()
- Extract rows from a CORRUPT table creating ROWID from DBA_EXTENTS
- [程式設計題]查詢所有員工的last_name和first_name以及對應的dept_name程式設計AST
- CSS 匹配指定name元素CSS
- fatal: Not a valid object name: 'master'ObjectAST
- ImportError: cannot import name parseImportError
- error: 'cout' does not name a type|Error
- 7.57 CON_NAME_TO_ID
- Unable to locate factory with name [default]
- iptables:No chain/target/match by the nameAI
- window.name 跨域跨域