You have to create stored procedure or function to get similar functionality.