我相当于是外面传参data,最开始我想的是用nvl,我觉得理想的是这样 select 1 from bd_user where id=nvl(data,id) 如果data为空就id为id 但是实际情况是,用户如果没有选择data,也就是data没接受值,打印出来就是 select 1 from bd_user where id=nvl(,id) 这样就直接报错了
Alex许恒的博客https://docs.oracle.com/cd/E18283_01/appdev.112/e17126/pipe_row_statement.htm PIPE ROW Statement The PIPE ROW statement, which can appear only in the body of a pipelined table function, returns a...