반응형
function mssql_begin_transaction() {
mssql_query("BEGIN TRANSACTION");
}
function mssql_commit() {
mssql_query("COMMIT");
}
function mssql_rollback() {
mssql_query("ROLLBACK");
}
function mssql_insert_id() {
$id = "";
$rs = mssql_query("SELECT @@identity AS id");
if ($row = mssql_fetch_row($rs)) {
$id = trim($row[0]);
}
mssql_free_result($rs);
return $id;
}
mssql_query("BEGIN TRANSACTION");
}
function mssql_commit() {
mssql_query("COMMIT");
}
function mssql_rollback() {
mssql_query("ROLLBACK");
}
function mssql_insert_id() {
$id = "";
$rs = mssql_query("SELECT @@identity AS id");
if ($row = mssql_fetch_row($rs)) {
$id = trim($row[0]);
}
mssql_free_result($rs);
return $id;
}
반응형