Ruby on Rails Sunday, January 1, 2012

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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment