<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: If exists in databrickds sql in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/54953#M30202</link>
    <description>&lt;P&gt;You can query `&lt;SPAN&gt;system.information_schema.tables` which includes all existing tables in the metastore. More on information schema:&lt;/SPAN&gt;&amp;nbsp;&lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-information-schema.html" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/sql-ref-information-schema.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 18:06:05 GMT</pubDate>
    <dc:creator>kottsane</dc:creator>
    <dc:date>2023-12-08T18:06:05Z</dc:date>
    <item>
      <title>If exists in databrickds sql</title>
      <link>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/2858#M130</link>
      <description>&lt;P&gt;what is the equivalent of "IF&amp;nbsp;EXISTS" in databricks? I would like to first check something later after that use the insert into statement. &lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 07:28:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/2858#M130</guid>
      <dc:creator>g96g</dc:creator>
      <dc:date>2023-06-19T07:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: If exists in databrickds sql</title>
      <link>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/2859#M131</link>
      <description>&lt;P&gt;Hi @Givi Salu​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;IF EXISTS&lt;/B&gt; - If specified, no&amp;nbsp;&lt;A href="https://docs.databricks.com/error-messages/table-or-view-not-found-error-class.html" alt="https://docs.databricks.com/error-messages/table-or-view-not-found-error-class.html" target="_blank"&gt;TABLE_OR_VIEW_NOT_FOUND&lt;/A&gt;&amp;nbsp;error is thrown when the table does not exist.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DROP TABLE IF EXISTS employeetable;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2023 13:54:27 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/2859#M131</guid>
      <dc:creator>Ajay-Pandey</dc:creator>
      <dc:date>2023-06-19T13:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: If exists in databrickds sql</title>
      <link>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/2860#M132</link>
      <description>&lt;P&gt;Hi @Givi Salu​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We haven't heard from you since the last response from @Ajay Pandey​&amp;nbsp;​, and I was checking back to see if her suggestions helped you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or else, If you have any solution, please share it with the community, as it can be helpful to others.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, Please don't forget to click on the "Select As Best" button whenever the information provided helps resolve your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 06:03:52 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/2860#M132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-20T06:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: If exists in databrickds sql</title>
      <link>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/52463#M29439</link>
      <description>&lt;P&gt;Is there a way to check if a table exists, without trying to drop it? something like :&lt;/P&gt;&lt;P&gt;select table_name from system_catalogs where database_name = 'mydb' and schema_name = 'myschema' and object_name = 'mytab';&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2023 22:39:03 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/52463#M29439</guid>
      <dc:creator>WWoman</dc:creator>
      <dc:date>2023-11-16T22:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: If exists in databrickds sql</title>
      <link>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/54953#M30202</link>
      <description>&lt;P&gt;You can query `&lt;SPAN&gt;system.information_schema.tables` which includes all existing tables in the metastore. More on information schema:&lt;/SPAN&gt;&amp;nbsp;&lt;A href="https://docs.databricks.com/en/sql/language-manual/sql-ref-information-schema.html" target="_blank"&gt;https://docs.databricks.com/en/sql/language-manual/sql-ref-information-schema.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 18:06:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/if-exists-in-databrickds-sql/m-p/54953#M30202</guid>
      <dc:creator>kottsane</dc:creator>
      <dc:date>2023-12-08T18:06:05Z</dc:date>
    </item>
  </channel>
</rss>

