Help for this page

Select Code to Download


  1. or download this
    >>-ACTIVATE--+-DATABASE-+--database-alias----------------------->
                 '-DB-------'
    ...
    >--+-------------------------------------+---------------------><
       '-USER--username--+-----------------+-'
                         '-USING--password-'
    
  2. or download this
    >>-select-clause--from-clause--+--------------+----------------->
                                   '-where-clause-'
    
    >--+-----------------+--+---------------+----------------------><
       '-group-by-clause-'  '-having-clause-'
    
  3. or download this
               .-ALL------.
    >>-SELECT--+----------+----------------------------------------->
    ...
           |             | .-AS-.                  | |
           |             '-+----+--new-column-name-' |
           '-exposed-name.*--------------------------'
    
  4. or download this
    rule1: 'ACTIVATE' ('DATABASE' | 'DB') database-alias ('' | 'USER' user
    +name ( '' | 'USING' password ) )
    rule2: select-clause from-clause ('' | where-clause) ('' | group-by-cl
    +ause) ('' | having-clause)
    rule3: 'SELECT' ('ALL' | '' | 'DISTINCT') ( '*' | ( expression ( '' | 
    +( ('' | 'AS' ) new-column-name ) ) | exposed-name '.*' )(/,/ *) )
    
  5. or download this
    rule2: select-clause from-clause where-clause(?) group-by-clause(?) ha
    +ving-clause(?)
    ..
    
  6. or download this
    #!/usr/bin/perl
    use warnings;
    ...
    # print "Mainline: $mainline\n";
    
    print line2rule($mainline, 0, 0+@{$info[$mainline]}, \@info), "\n";