Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
Cml
Db
MongoDB
MongoDB
insertId
Cml\Db\MongoDB\MongoDB::insertId PHP Method
MongoDB Class Documentation
Show file
Open project: linhecheng/cmlphp
insertId()
public
method
获取上一INSERT的主键值
public
insertId
(
mixed
$link
= null ) :
integer
$link
mixed
MongoDdb中此选项无效
return
integer
public function insertId($link = null) { return $this->lastInsertId; }
MongoDB
__construct
__destruct
__get
_and
_or
affectedRows
aggregation
avg
buildSql
callProcedure
close
columns
commit
conditionFactory
connect
count
debugLogSql
decrement
delete
get
getAllTableStatus
getDbFields
getDbName
getMaster
getMongoDbAutoIncKey
getPk
getRealTableName
getSlave
getTables
groupBy
having
increment
insertId
join
lBrackets
leftJoin
limit
logNotSupportMethod
max
min
mongoDbAggregate
mongoDbDistinct
orderBy
parseKey
rBrackets
reset
rightJoin
rollBack
runMongoBulkWrite
runMongoCommand
runMongoQuery
savePoint
select
serverSupportFeature
set
startTransAction
sum
truncate
union
update
version
whereLike
whereNotLike