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

thinkphp怎么获得sequence的值

WBOY
Release: 2016-06-13 12:41:09
Original
826 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template