Postgres Replace View Syntax In Mysql