中间 Shape COMPUTE 子句
在参数化的 shape 命令中,可以在父级和子级之间嵌入一个或多个 COMPUTE 子句,如以下示例所示:
SHAPE {select au_lname, state from authors} APPEND
((SHAPE
(SHAPE
{select * from authors where state = ?} rs
COMPUTE rs, ANY(rs.state) state, ANY(rs.au_lname) au_lname
BY au_id) rs2
COMPUTE rs2, ANY(rs2.state) BY au_lname)
RELATE state TO PARAMETER 0)