ストアド プロシージャのこの部分を MSSQL から MYSQL に変換するのに助けが必要です。
Ps私の英語でごめんなさい
set @PARAMS = '@DATA_INIZIO VARCHAR(20),
@DATA_FINE VARCHAR(20),
@SEDE VARCHAR(10)'
set @CMD = 'WITH DriversRN AS
(
SELECT ROW_NUMBER() OVER(ORDER BY '+ @ORDER_BY_RN +') as ROW_NUM, * FROM digitalpodcontrol
WHERE Date BETWEEN @DATA_INIZIO AND @DATA_FINE AND Depot = @SEDE
)
SELECT * FROM DriversRN
WHERE ROW_NUM BETWEEN ' + CONVERT(VARCHAR(50),@MIN__VALUE) + ' AND ' + CONVERT(VARCHAR(50),@MAX__VALUE) + '
ORDER BY ' + @ORDER_BY + ' ' + @DIRECTION
EXECUTE sp_executesql @CMD, @PARAMS, @DATA_INIZIO, @DATA_FINE, @SEDE