PHP-Code:
select worker.ename || ’ works for ‘ || manager.ename
from emp worker, emp manager
where worker.mgr = manager.empno;
wie kann ich die anweisung nach mysql portieren?
achja, die ausgabe sieht dann z.b. so aus (vielleicht ganz interessant):
Code:
WORKER.ENAME||'WORKS FOR'||MANAGER.ENAME ------------------------------ BLAKE works for KING CLARK works for KING JONES works for KING MARTIN works for BLAKE ALLEN works for BLAKE TURNER works for BLAKE JAMES works for BLAKE WARD works for BLAKE FORD works for JONES SMITH works for FORD SCOTT works for JONES ADAMS works for SCOTT MILLER works for CLARK
Kommentar