元数据定义 #
校验流程 #
标准化 SQL 语句 #
SELECT
*
FROM
(
SELECT
*
FROM
'sys_user'
ORDER BY
'id'
)
注册命名空间和作用域 #
3个命名空间
- sys_user
- select
2个作用域
SELECT
*
FROM
(
SELECT
*
FROM
'sys_user'
ORDER BY
'id'
) AS 'EXPR$0'
执行校验逻辑 #
SQL语句被展开替换
SELECT
'EXPR$0'.'id',
'EXPR$0'.'name',
'EXPR$0'.'age',
'EXPR$0'.'sex'
FROM
(
SELECT
'sys_user'.'id',
'sys_user'.'name',
'sys_user'.'age',
'sys_user'.'sex',
FROM
'sys_user'
ORDER BY
'id'
) AS 'EXPR$0'