Anonymous user
Multiline shebang: Difference between revisions
→{{header|Db2 SQL PL}}
No edit summary |
|||
Line 97:
|#</lang>
=={{header|
{{works with|Db2 LUW}}
Based on the Postgres shebang, it works the same with IBM Db2.
<lang sql>
--() { :; }; exec db2 -txf "$0"
get instance;
connect;
select 'Hello' from sysibm.sysdummy1;
values current date;
</lang>
The db2profile should be loaded before executing the 'db2' command (. ~db2inst1/sqllib/db2profile).
|