On 2013-08-30 10:46, Rajiv Perera wrote:
what is the equivalent function to sql LAST() function in H2?

SELECT LAST(CustomerName) AS LastCustomer FROM Customers;


The LAST() function appears to be an MS-Access peculiarity.

See here for workarounds:
http://www.w3schools.com/sql/sql_func_last.asp

Something like:

  SELECT column_name
  FROM table_name
  ORDER BY column_name DESC
  LIMIT 1

would be appropriate for H2.

--
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to