What are the benefits of using aliases (a, b, c) in PHP DELETE statements?

Using aliases in PHP DELETE statements can make the code more readable and concise by assigning shorter names to table names or columns. This can help improve code maintainability and make it easier to understand the query structure. Additionally, aliases can be useful when dealing with complex queries involving multiple tables or self-joins.

<?php
// Using aliases in a DELETE statement
$sql = "DELETE t1 FROM table1 AS t1 WHERE t1.id = 1";
$result = mysqli_query($conn, $sql);

if ($result) {
    echo "Record deleted successfully";
} else {
    echo "Error deleting record: " . mysqli_error($conn);
}
?>