*** plsql.sgml Sat Jan 6 20:04:15 2001 --- plsql.sgml.modi Sat Jan 6 20:01:49 2001 *************** *** 488,505 **** EXECUTE ! query ! Unlike all other queries in PL/pgSQL, a query run by an EXECUTE statement is not prepared and saved just once during the life of the server. Instead, the query is ! prepared each time the statement is run. This allows the ! query to be dynamically created within the procedure to perform actions on variable tables and fields. --- 488,515 ---- EXECUTE ! query-string ! ! ! where query-string is a string ! of type TEXT containing the query to be executed. ! ! Unlike all other queries in PL/pgSQL, a query run by an EXECUTE statement is not prepared and saved just once during the life of the server. Instead, the query is ! prepared each time the statement is run. The ! query-string can be dynamically created within the procedure to perform actions on variable tables and fields. + + + + The results from SELECT queries are discarded by EXECUTE unless + SELECT INTO is used to save the results into a table.