PHP 클래스 yii\db\mssql\SqlsrvPDO

It provides workarounds for improperly implemented functionalities of the SQLSRV driver.
부터: 2.0
저자: Timur Ruziev ([email protected])
상속: extends PDO
파일 보기 프로젝트 열기: yiisoft/yii2

공개 메소드들

메소드 설명
lastInsertId ( string | null $sequence = null ) : integer Returns value of the last inserted ID.

메소드 상세

lastInsertId() 공개 메소드

SQLSRV driver implements [[PDO::lastInsertId()]] method but with a single peculiarity: when $sequence value is a null or an empty string it returns an empty string. But when parameter is not specified it works as expected and returns actual last inserted ID (like the other PDO drivers).
public lastInsertId ( string | null $sequence = null ) : integer
$sequence string | null the sequence name. Defaults to null.
리턴 integer last inserted ID value.