Help for this page

Select Code to Download


  1. or download this
    select * from dept; select * from emp;
    +--------+----------+
    ...
    |      2 |      2 |
    |      3 |   NULL |
    +--------+--------+
    
  2. or download this
    my $query = qq{select distinct dept.deptID, emp.deptID 
        from dept left join emp using(deptID)};
    ...
    deptID, deptID
    --- fetchrow_hashref
    deptID