g/reference/copy_to.html" class="external-link">copy_to</a></span><span class="op">(</span><span class="va">con</span>, <span class="va">mtcars</span>,</span></span>
<span class="r-in"><span>        s3_location <span class="op">=</span> <span class="st">"s3://mybucket/data/"</span><span class="op">)</span></span></span>
<span class="r-in"><span>             </span></span>
<span class="r-in"><span><span class="co"># Checking if uploaded table exists in Athena</span></span></span>
<span class="r-in"><span><sp