I am writing a stored procedure to insert an record into my table. If the record exists,  just update it. it is easier to acheive in microsoft sql server with the sql:
         if exists( select column from table where condition ...). 
    As monetdb doesn't support select statment and cursor in stored procedure, is there other walkround?