@Override
    public String getTableAlias() {
        SQLSelectQueryBlock selectQueryBlock = getSelect();
        SQLTableSource tableSource = selectQueryBlock.getFrom();
        return tableSource.getAlias();
    }
@Test
    public void testGetTableAlias() {
        //test for no alias
        String sql = "SELECT * FROM t WITH (UPDLOCK) WHERE id = ?";
        SQLStatement ast = getSQLStatement(sql);

        SqlServerSelectForUpdateRecognizer recognizer = new SqlServerSelectForUpdateRecognizer(sql, ast);
        Assertions.assertNull(recognizer.getTableAlias());

        //test for alias
        sql = "SELECT * FROM t t1 WITH (UPDLOCK) WHERE id = ?";
        ast = getSQLStatement(sql);

        recognizer = new SqlServerSelectForUpdateRecognizer(sql, ast);
        Assertions.assertEquals("t1", recognizer.getTableAlias());
    }