Home >Backend Development >PHP Tutorial > thinkphp怎么获得sequence的值

thinkphp怎么获得sequence的值

WBOY
WBOYOriginal
2016-06-13 12:41:09831browse

thinkphp如何获得sequence的值?
用的oracle数据库,有个sequence名为aid,在插入数据的时候需要先获得aid.nextval,然后再拼接若干字母,作为字段值插入。本来在数据库中可以“select aid.nextval from dual”,那么用thinkphp的话,要如何获得?thinkphp这块比较菜,请具体点说,谢谢大仙们了 ~~

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn