php 获取 Oracle 新增id

// 重写获取插入ID事件
	public function getLastInsID(){
		$sql = "SELECT SEQ_MB_API_STYLE.currval AS id FROM sys.dual";
		$result = $this->query($sql);
		$lastId = $result[0]['id'];
		return $lastId;
	}

Jason.wang

When you find your talent can't afford to be ambitious, be quiet and study !

You may also like...