{"id":1157,"date":"2016-03-09T05:43:25","date_gmt":"2016-03-09T05:43:25","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=1157"},"modified":"2016-03-09T05:43:25","modified_gmt":"2016-03-09T05:43:25","slug":"looping-through-records-in-table","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/looping-through-records-in-table\/","title":{"rendered":"Looping through records in Table"},"content":{"rendered":"<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nFOR tbl_det IN (SELECT ts.column_1,\r\n                       ts.column_2\r\n                  FROM table_name ts\r\n                 WHERE ts.column_3 = p_param_1)\r\n    \r\nLOOP    \r\n      v_csv_col1 := v_csv_col1 || ',' || tbl_det.column_1;\r\nEND LOOP;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>FOR tbl_det IN (SELECT ts.column_1, ts.column_2 FROM table_name ts WHERE ts.column_3 = p_param_1) LOOP v_csv_col1 := v_csv_col1 || &#8216;,&#8217; || tbl_det.column_1; END LOOP;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[75],"tags":[],"class_list":["post-1157","post","type-post","status-publish","format-standard","hentry","category-packages-procedures"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1157","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=1157"}],"version-history":[{"count":1,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1157\/revisions"}],"predecessor-version":[{"id":1158,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1157\/revisions\/1158"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=1157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=1157"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=1157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}