Hi, > Update test_table set Name='Akshay' where rownum() = 5 - Does Not Work > Update test_table set Name='Akshay' where rownum = 5 - Does Not Work > while > Update test_table set Name='Akshay' where rownum() = 1 - Works > > Am I doing the right thing ? Is there an Alternate Statement ?
This is a problem of ROWNUM and also exists in Oracle. See: http://archives.postgresql.org/pgsql-general/2001-07/msg01257.php You need to use another key. The best solution is to use the primary key: Update test_table set Name='Akshay' where ID = 5 Regards, Thomas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "H2 Database" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/h2-database?hl=en -~----------~----~----~----~------~----~------~--~---
