Multiline shebang: Difference between revisions

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