{"id":1,"date":"2011-06-11T13:00:35","date_gmt":"2011-06-11T13:00:35","guid":{"rendered":"http:\/\/fatihacar.com\/blog\/?p=1"},"modified":"2011-06-15T02:43:26","modified_gmt":"2011-06-14T23:43:26","slug":"hello-world","status":"publish","type":"post","link":"http:\/\/www.fatihacar.com\/blog\/hello-world\/","title":{"rendered":"External value in SQL"},"content":{"rendered":"<p>If you want to use external value in SQL, you must use &amp;&amp; or &amp; expressions. You can use external value in column name, table name or variable.<\/p>\n<p><strong>Example<\/strong><\/p>\n<blockquote><p>select * from employees where employee_id = &amp;employeeid;<\/p><\/blockquote>\n<p>If you use to double expression (&amp;&amp;), this value makes a cache. You can use this cached value with single expression (&amp;). But when your SQL Query is finished, you must do undefine this cached value. Because this variable is read in cache everytime. Your changes are not influence for variable.<\/p>\n<p><strong>Example<\/strong><\/p>\n<blockquote><p>select &#038;&#038;column_name from employees where &#038;column_name = &variable;<\/p>\n<p>undefine column_name;\n<\/p><\/blockquote>\n<p>&#038;&#038;column_name wants one column name in employees table and make cache your value. After the system uses your value in &#038;column_name. &#038;variable is noncache. Because single expression (&#038;).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to use external value in SQL, you must use &amp;&amp; or &amp; expressions. You can use external value in column name, table name or variable. Example select * from employees where employee_id = &amp;employeeid; If you use to double expression (&amp;&amp;), this value makes a cache. You can use this cached value&#8230;<\/p>\n","protected":false},"author":37,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[6],"tags":[90,91],"class_list":["post-1","post","type-post","status-publish","format-standard","hentry","category-oracle-sql","tag-oracle","tag-oracle-sql"],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p39NFI-1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/comments?post=1"}],"version-history":[{"count":11,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1\/revisions"}],"predecessor-version":[{"id":59,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/posts\/1\/revisions\/59"}],"wp:attachment":[{"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/media?parent=1"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/categories?post=1"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.fatihacar.com\/blog\/wp-json\/wp\/v2\/tags?post=1"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}