简体   繁体   English

Oracle函数到PostgreSQL

[英]Oracle function to PostgreSQL

I'm try to convert my Oracle function which contains SUBSTR() to PostgreSQL. 我尝试将包含SUBSTR() Oracle函数转换为PostgreSQL。 Is there an equivalent function in PSQL? PSQL中是否有等效功能? Thanks. 谢谢。

I manage to find a Oracle Instr() conversion to PostgreSQL . 我设法找到Oracle Instr()到PostgreSQL的转换。

You can use a code from Postgres documentation mentioned by michel-sim. 您可以使用michel-sim提到的Postgres文档中的代码。 Other possibility is Orafce extension - https://github.com/orafce/orafce or http://postgres.cz/wiki/Oracle_functionality_%28en%29 that is available for RedHat or Debian as binary package too. 其他可能性是Orafce扩展-https: //github.com/orafce/orafcehttp://postgres.cz/wiki/Oracle_functionality_%28en%29 ,它也可以作为二进制软件包用于RedHat或Debian。

substring ,但是您必须修改调用-您需要substring(x from i to j)来代替substr(x, i, j) substring(x from i to j)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM