{"id":443,"date":"2017-04-06T17:01:38","date_gmt":"2017-04-06T20:01:38","guid":{"rendered":"http:\/\/gianfratti.com\/?p=443"},"modified":"2017-04-06T17:37:17","modified_gmt":"2017-04-06T20:37:17","slug":"retorno-procedure-com-cursor","status":"publish","type":"post","link":"https:\/\/gianfratti.com\/index.php\/retorno-procedure-com-cursor\/","title":{"rendered":"Retorno Procedure com Cursor"},"content":{"rendered":"<p>Recentemente precisei executar uma procedure no SQL DEVELOPER que retornava um curso.<\/p>\n<p>Segue um exemplo.<br \/>\n<!--more--><\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\n\/*Criamos um cursor que vai receber o cursor (OUT) Output da procedure*\/\r\n variable rc refcursor;\r\n \/*Executamos a procedure, passando os par\u00e2metros da procedure e o cursor criado para receber o cursor de OUT da procedure*\/\r\n exec MinhaProcedure('7124834', :rc );\r\n \/*retorno dos dados*\/\r\n print rc;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recentemente precisei executar uma procedure no SQL DEVELOPER que retornava um curso. <span class=\"ellipsis\">&hellip;<\/span> <span class=\"more-link-wrap\"><a href=\"https:\/\/gianfratti.com\/index.php\/retorno-procedure-com-cursor\/\" class=\"more-link\"><span>Read More &rarr;<\/span><\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17,82],"tags":[88],"class_list":["post-443","post","type-post","status-publish","format-standard","hentry","category-banco-de-dados","category-oracle","tag-cursor"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts\/443","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/comments?post=443"}],"version-history":[{"count":7,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts\/443\/revisions"}],"predecessor-version":[{"id":450,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/posts\/443\/revisions\/450"}],"wp:attachment":[{"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/media?parent=443"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/categories?post=443"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gianfratti.com\/index.php\/wp-json\/wp\/v2\/tags?post=443"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}