Hi,
Is there any way to use Sequel::Model.max in Sequel::Model.create?
I want the query like bellow.
INSERT INTO users (name,number) VALUES ('hoo',(SELECT MAX(number)+1 FROM
users));
Because I want to increment the number atomically.
Thanks.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" 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 https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.