Sto usando MySQL. Voglio restituire la tabella usando la funzione MySQL. In SQL funziona bene ma non in MySQL. Allego il mio codice parzialeCome restituire la tabella usando mysql Funzione
DELIMITER $$
CREATE FUNCTION myFunction() RETURNS @tmptable TABLE (item varchar(20))
BEGIN
insert into @tmptable(item) values('raja')
return
END; $$
In MySQL, una funzione non può restituire una tabella. Dovresti usare una procedura memorizzata per quello. –
Cosa intendi con "* In SQL funziona bene? *". Tu ** stai ** usando SQL .... –