<?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: How do I search for all the columns/field names starting with &amp;quot;XYZ&amp;quot; in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-do-i-search-for-all-the-columns-field-names-starting-with/m-p/9472#M4823</link>
    <description>&lt;P&gt;@Ian Fox​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error you are receiving suggests that the database you are working with does not have an information_schema.columns table or the user you are logged in as does not have permissions to access it. The information_schema.columns table is a system catalog view that contains information about all columns in all tables in a database, including their names. It is commonly used to search for column names. To search for columns that contain "XYZ", you can use the following SQL statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT table_name, column_name 
FROM information_schema.columns 
WHERE column_name LIKE '%XYZ%' 
ORDER BY table_name, column_name;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you still encounter an error, you may want to check if you have the necessary permissions to query the information_schema.columns table, or if the table is available in your database.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Apr 2023 14:42:40 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-04-09T14:42:40Z</dc:date>
    <item>
      <title>How do I search for all the columns/field names starting with "XYZ"</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-search-for-all-the-columns-field-names-starting-with/m-p/9471#M4822</link>
      <description>&lt;P&gt;I would like to do a big search on all field/columns names that contain "XYZ".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried below sql but it's giving me an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT&amp;nbsp;&lt;/P&gt;&lt;P&gt;table_name&lt;/P&gt;&lt;P&gt;,column_name&lt;/P&gt;&lt;P&gt;FROM &lt;B&gt;information_schema.columns&lt;/B&gt;&lt;/P&gt;&lt;P&gt;WHERE column_name like '%&amp;lt;account&amp;gt;%'&lt;/P&gt;&lt;P&gt;order by table_name, column_name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR states "Table or view not found: &lt;B&gt;information_schema.columns&lt;/B&gt;; line 4, pos 5"&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 18:01:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-search-for-all-the-columns-field-names-starting-with/m-p/9471#M4822</guid>
      <dc:creator>QuicKick</dc:creator>
      <dc:date>2023-02-13T18:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for all the columns/field names starting with "XYZ"</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-search-for-all-the-columns-field-names-starting-with/m-p/9472#M4823</link>
      <description>&lt;P&gt;@Ian Fox​&amp;nbsp;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error you are receiving suggests that the database you are working with does not have an information_schema.columns table or the user you are logged in as does not have permissions to access it. The information_schema.columns table is a system catalog view that contains information about all columns in all tables in a database, including their names. It is commonly used to search for column names. To search for columns that contain "XYZ", you can use the following SQL statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT table_name, column_name 
FROM information_schema.columns 
WHERE column_name LIKE '%XYZ%' 
ORDER BY table_name, column_name;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you still encounter an error, you may want to check if you have the necessary permissions to query the information_schema.columns table, or if the table is available in your database.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2023 14:42:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-search-for-all-the-columns-field-names-starting-with/m-p/9472#M4823</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-09T14:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for all the columns/field names starting with "XYZ"</title>
      <link>https://community.databricks.com/t5/data-engineering/how-do-i-search-for-all-the-columns-field-names-starting-with/m-p/9473#M4824</link>
      <description>&lt;P&gt;Hi @Ian Fox​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for posting your question in our community! We are happy to assist you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answers your question?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will also help other community members who may have similar questions in the future. Thank you for your participation and let us know if you need any further assistance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 09:55:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-do-i-search-for-all-the-columns-field-names-starting-with/m-p/9473#M4824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-04-17T09:55:21Z</dc:date>
    </item>
  </channel>
</rss>

