<?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: grepping for table_name in sql statement in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/grepping-for-table-name-in-sql-statement/m-p/2532000#M869235</link>
    <description>Save the following program as print_table.pl&lt;BR /&gt;&lt;BR /&gt;while(&amp;lt;&amp;gt;) {&lt;BR /&gt; while(/FROM (\w+)/ig) { print $1,"\n"; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Then enter&lt;BR /&gt;perl print_table.pl your_sql_select_file&lt;BR /&gt;&lt;BR /&gt;Where your_sql_select_file has the select statement. This will print one line be table name that follows a "from" clause (upper or lowercase).</description>
    <pubDate>Wed, 23 May 2001 15:37:05 GMT</pubDate>
    <dc:creator>Rodney Hills</dc:creator>
    <dc:date>2001-05-23T15:37:05Z</dc:date>
    <item>
      <title>grepping for table_name in sql statement</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grepping-for-table-name-in-sql-statement/m-p/2531999#M869234</link>
      <description>Hi, &lt;BR /&gt;Can someone suggest a way to grep out the tables names from an sql statement. (Table names all "T....", and sql atatement all on one line)&lt;BR /&gt;eg: would return TW4S0 and TW4R0 from below.&lt;BR /&gt;SELECT POLICY_TRANSACTION FROM TW4S0 WHERE(POLICY_NUMBER=:b1)AND(POLICY_TRANSACTION=:b2)AND SEQUENCE_NUM=(SELECT MAX(SEQUENCE_NUM)FROM TW4R0 WHERE POLICY_NUMBER=:b1 AND POLICY_&lt;BR /&gt;TRANSACTION=:b2)  &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Ian&lt;BR /&gt;</description>
      <pubDate>Wed, 23 May 2001 14:58:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grepping-for-table-name-in-sql-statement/m-p/2531999#M869234</guid>
      <dc:creator>Ian McClement_1</dc:creator>
      <dc:date>2001-05-23T14:58:23Z</dc:date>
    </item>
    <item>
      <title>Re: grepping for table_name in sql statement</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/grepping-for-table-name-in-sql-statement/m-p/2532000#M869235</link>
      <description>Save the following program as print_table.pl&lt;BR /&gt;&lt;BR /&gt;while(&amp;lt;&amp;gt;) {&lt;BR /&gt; while(/FROM (\w+)/ig) { print $1,"\n"; }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Then enter&lt;BR /&gt;perl print_table.pl your_sql_select_file&lt;BR /&gt;&lt;BR /&gt;Where your_sql_select_file has the select statement. This will print one line be table name that follows a "from" clause (upper or lowercase).</description>
      <pubDate>Wed, 23 May 2001 15:37:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/grepping-for-table-name-in-sql-statement/m-p/2532000#M869235</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2001-05-23T15:37:05Z</dc:date>
    </item>
  </channel>
</rss>

