<?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 to extract a value from database - using command line ? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109472#M664271</link>
    <description>Thanks all</description>
    <pubDate>Wed, 17 Jun 2009 10:36:50 GMT</pubDate>
    <dc:creator>Syed Madar J S</dc:creator>
    <dc:date>2009-06-17T10:36:50Z</dc:date>
    <item>
      <title>How to extract a value from database - using command line ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109467#M664266</link>
      <description>Hi,&lt;BR /&gt;i guess it would be possible to extract a value from database - using command line or shell scripting.&lt;BR /&gt;&lt;BR /&gt;Please throw some light on this as i am new to this concept.</description>
      <pubDate>Mon, 19 May 2008 12:53:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109467#M664266</guid>
      <dc:creator>Syed Madar J S</dc:creator>
      <dc:date>2008-05-19T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a value from database - using command line ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109468#M664267</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;It would be helpful to know what database we're talking about here.&lt;BR /&gt;&lt;BR /&gt;Bottom line is most database servers come with a binary for extracting data from the database files. Now due to security concerns the raw database files may have encrypted data in them, making it impossible to extract anything from the command line but gibberish.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 19 May 2008 13:00:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109468#M664267</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2008-05-19T13:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a value from database - using command line ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109469#M664268</link>
      <description>most databases have a command line interface, and it varies by db...&lt;BR /&gt;&lt;BR /&gt;if it does, then you can use "here-docs" to extract data using a shell script.  see the "man" page for whatever shell you are using.  the concept is something along the lines of:&lt;BR /&gt;&lt;BR /&gt;my_query_command &amp;lt;&amp;lt;-EOF&lt;BR /&gt;select blah from blahblah&lt;BR /&gt;EOF</description>
      <pubDate>Mon, 19 May 2008 13:05:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109469#M664268</guid>
      <dc:creator>OldSchool</dc:creator>
      <dc:date>2008-05-19T13:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a value from database - using command line ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109470#M664269</link>
      <description>we are trying to extract value from "Postgre SQL"&lt;BR /&gt;&lt;BR /&gt;we are using a method "cldb_getAllElements"&lt;BR /&gt;&lt;BR /&gt;This method is suppose to return the list of elements in the set.&lt;BR /&gt;&lt;BR /&gt;But when we remove all elements, and then try using the above method - we are encountering an error - as it tries to access an empty-list.!!&lt;BR /&gt;&lt;BR /&gt;### This was the main problem ####&lt;BR /&gt;&lt;BR /&gt;so i thought of extracting elements from database to check if the list is empty - through command line (Unix Shell) itself.&lt;BR /&gt;&lt;BR /&gt;I guessed this might be a possible solution.</description>
      <pubDate>Mon, 19 May 2008 13:07:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109470#M664269</guid>
      <dc:creator>Syed Madar J S</dc:creator>
      <dc:date>2008-05-19T13:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a value from database - using command line ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109471#M664270</link>
      <description>/*#### this is the C++ method used to get the list ####*/&lt;BR /&gt;&lt;BR /&gt;void Cldb::getAllElements(string * result, int *status) {&lt;BR /&gt;&lt;BR /&gt;    string sql = string("SELECT short_name ");&lt;BR /&gt;&lt;BR /&gt;    sql.append(" FROM node, element ");&lt;BR /&gt;    sql.append(" WHERE element.management_node_id != node.node_id;\n");&lt;BR /&gt;&lt;BR /&gt;    char *answer;&lt;BR /&gt;&lt;BR /&gt;    mysqlResult(sql, "getAllElements", status, &amp;amp;answer);&lt;BR /&gt;    if( *status == 0) {&lt;BR /&gt;        *result = trimHeaderFromSqlOutput(answer);&lt;BR /&gt;    } else {&lt;BR /&gt;        *result = string("");&lt;BR /&gt;    }&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;=================================&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Any idea as how to deal with an empty-list when this method is called ?&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 03:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109471#M664270</guid>
      <dc:creator>Syed Madar J S</dc:creator>
      <dc:date>2008-05-20T03:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract a value from database - using command line ?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109472#M664271</link>
      <description>Thanks all</description>
      <pubDate>Wed, 17 Jun 2009 10:36:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-extract-a-value-from-database-using-command-line/m-p/5109472#M664271</guid>
      <dc:creator>Syed Madar J S</dc:creator>
      <dc:date>2009-06-17T10:36:50Z</dc:date>
    </item>
  </channel>
</rss>

