Help for this page

Select Code to Download


  1. or download this
      CREATE FUNCTION FUNC_JUST_RETURN_IT(i int)
         RETURNS int
    ...
         DETERMINISTIC
      RETURN i
      @
    
  2. or download this
      -- execute directly
      SELECT DB2INST1.FUNC_JUST_RETURN_IT(42)
        FROM SYSIBM.SYSDUMMY1
    
  3. or download this
      -- prepare, then execute later
      SELECT DB2INST1.FUNC_JUST_RETURN_IT(?)
        FROM SYSIBM.SYSDUMMY1
    
  4. or download this
    use strict;
    use warnings;
    ...
    1;
    
    __END__
    
  5. or download this
    $ /usr/bin/perl -w call.function.pl
    ok 1 - Expect 123456 returned
    ...
    1..1
    # Looks like your test died just after 1.
    $