문제

나는 일반적으로 테이블과 같은 데이터 세트를 함수의 발신자로 되돌릴 수있는 MSSQL-Server에서 작동합니다.MySQL에서는 이것이 불가능하지 않는다는 것을 이해합니다.MySQL에서 가장 좋은 방법은 무엇인가, 동일한 결과를 얻는 좋은 방법은 무엇입니까?

temp-tables와 함께 작동해야합니까?나는 모든 답변을 기쁘게 생각합니다.

도움이 되었습니까?

해결책

I think temp tables are your only answer. You can't 'use' the return of a stored procedure and a stored function can only return one value.

다른 팁

It depends on the complexity of the table you wish to return.

If it is a single column you could return it as a delimited string, and parse that.

Otherwise, you will need to use a temp table.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top