Robby Russell wrote in post #72333:
> On Apr 29, 2006, at 5:56 PM, Guido Sohne wrote:
>
...
> SELECT MAX(id) FROM entities;
> SELECT nextval('entities_id_seq');

> This should be higher than the last result.
> SELECT setval('entities_id_seq', (SELECT MAX(id) FROM entities)+1);
>
...

Thank you so much fro this post!

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" 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/rubyonrails-talk?hl=en.

Reply via email to