<?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: Command line arguement for SQLPlus in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line-arguement-for-sqlplus/m-p/2781939#M832997</link>
    <description>You can also run this via a script&lt;BR /&gt;eg&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;MYVAR=10&lt;BR /&gt;sqlplus user/password &amp;lt;&amp;lt; EOF&lt;BR /&gt;select count(1)&lt;BR /&gt;from mytable m&lt;BR /&gt;where m.myrow = $MYVAR&lt;BR /&gt;/&lt;BR /&gt;EOF&lt;BR /&gt;</description>
    <pubDate>Thu, 08 Aug 2002 06:08:47 GMT</pubDate>
    <dc:creator>Pierce Byrne_1</dc:creator>
    <dc:date>2002-08-08T06:08:47Z</dc:date>
    <item>
      <title>Command line arguement for SQLPlus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line-arguement-for-sqlplus/m-p/2781937#M832995</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Just wondering if it is possible to pass command line arguement to .sql file?&lt;BR /&gt;&lt;BR /&gt;E.g. SQL&amp;gt; abc.sql 1 2&lt;BR /&gt;&lt;BR /&gt;Just like shell script accepting paramter.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Chris,</description>
      <pubDate>Thu, 08 Aug 2002 05:10:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line-arguement-for-sqlplus/m-p/2781937#M832995</guid>
      <dc:creator>Chris Fung</dc:creator>
      <dc:date>2002-08-08T05:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Command line arguement for SQLPlus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line-arguement-for-sqlplus/m-p/2781938#M832996</link>
      <description>Yes, you can.&lt;BR /&gt;&lt;BR /&gt;In the SQL script file, similar to shell scripts, instead of using "$1", "$2", ..., replace it with "&amp;amp;1", "&amp;amp;2", ...&lt;BR /&gt;&lt;BR /&gt;If you do not want the &amp;amp;1 or &amp;amp;2 to be definded repeatedly in the subsequent reference inside the sql scripts, use &amp;amp;&amp;amp;1, &amp;amp;&amp;amp;2, ... instead.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Kenneth&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Aug 2002 05:15:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line-arguement-for-sqlplus/m-p/2781938#M832996</guid>
      <dc:creator>Kenneth_19</dc:creator>
      <dc:date>2002-08-08T05:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: Command line arguement for SQLPlus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line-arguement-for-sqlplus/m-p/2781939#M832997</link>
      <description>You can also run this via a script&lt;BR /&gt;eg&lt;BR /&gt;#!/bin/ksh&lt;BR /&gt;MYVAR=10&lt;BR /&gt;sqlplus user/password &amp;lt;&amp;lt; EOF&lt;BR /&gt;select count(1)&lt;BR /&gt;from mytable m&lt;BR /&gt;where m.myrow = $MYVAR&lt;BR /&gt;/&lt;BR /&gt;EOF&lt;BR /&gt;</description>
      <pubDate>Thu, 08 Aug 2002 06:08:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line-arguement-for-sqlplus/m-p/2781939#M832997</guid>
      <dc:creator>Pierce Byrne_1</dc:creator>
      <dc:date>2002-08-08T06:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Command line arguement for SQLPlus</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/command-line-arguement-for-sqlplus/m-p/2781940#M832998</link>
      <description>You can pass any no. of parameters. Example&lt;BR /&gt;&lt;BR /&gt;!/bin/ksh&lt;BR /&gt;echo "Enter Database User Name : \c "&lt;BR /&gt;read username&lt;BR /&gt;echo "Enter Password : \c "&lt;BR /&gt;read password&lt;BR /&gt;echo "Enter Employee Name : \c "&lt;BR /&gt;read ename&lt;BR /&gt;&lt;BR /&gt;sqlplus -s &amp;lt;&amp;lt; SQLEOF&lt;BR /&gt;${username}/${password}&lt;BR /&gt;SELECT * &lt;BR /&gt;FROM EMPLOYEE&lt;BR /&gt;WHERE ENAME='${ename}';&lt;BR /&gt;&lt;BR /&gt;SQLEOF&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Zafar</description>
      <pubDate>Thu, 08 Aug 2002 19:39:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/command-line-arguement-for-sqlplus/m-p/2781940#M832998</guid>
      <dc:creator>Zafar A. Mohammed_1</dc:creator>
      <dc:date>2002-08-08T19:39:06Z</dc:date>
    </item>
  </channel>
</rss>

