Xbody
Benutzer
- Beiträge
- 9
Code:
CREATE OR REPLACE PROCEDURE LibertyCity(X CHAR) AS
BEGIN
IF X LIKE 'la' THEN
(Select S.Name
from City S, Country C
where S.Country = C.Code and C.Code = 'la';)
IF X LIKE 'tu' THEN
(Select S.Name
from City S, Country C
where S.Country = C.Code and C.Code = 'tu';)
END;
Ich hoffe man versteht, was ich tun möchte,
ich weiß bloß nicht wie.
Verwende Oracle SQL Developer.
Da kommt ein Fehler
Code:
Error(4,10): PLS-00103: Encountered the symbol "SELECT" when expecting one of the following: ( - + case mod new not null <an identifier> <a double-quoted delimited-identifier> <a bind variable> continue avg count current exists max min prior sql stddev sum variance execute forall merge time timestamp interval date <a string literal with character set specification> <a number> <a single-quoted SQL string> pipe <an alternatively-quoted string literal with character set specification> <an alternat