Sql Server Function Declare Variable Postgresql Vs Mysql