- Server中的语法
SET @InnerQuery = @InnerQuery + N'SELECT * from [' + @TableName + '] UNION ALL';--在这里,我尝试在plpgsql中查询上述查询。
innerquery:= innerquery UNION ALL select * from '%',TableName; --Not in working state发布于 2014-02-24 07:46:47
试试这个:
execute innerQuery || ' union all select * from "'
|| tableName || '"';https://stackoverflow.com/questions/21981651
复制相似问题