事务处理
```
try {
$ret = 0;
if (!$ret) {
throw new \Exception("数据库操作失败", 400);
}
} catch (\Exception $e) {
echo var_export($e->getMessage(), 1);
} finally {
echo 'end';
exit;
}
```
Last updated
```
try {
$ret = 0;
if (!$ret) {
throw new \Exception("数据库操作失败", 400);
}
} catch (\Exception $e) {
echo var_export($e->getMessage(), 1);
} finally {
echo 'end';
exit;
}
```
Last updated