Sorry for not making my self clear
I mean :
DB.create_table :categories do
primary_key :id, :type=>Integer, :auto_increment => true
 String :name
end

gives me error : /usr/lib/ruby/1.8/sequel/adapters/postgres.rb:135:in
`async_exec': PGError ERROR:  syntax error at or near "AUTOINCREMENT"
(Sequel::DatabaseError)

How do I solve this?

On Wed, Mar 10, 2010 at 12:34 PM, hendra kusuma <[email protected]>wrote:

> Dear all,
> how can i create a table with autonumber field as pk?
>
> Thank you
> Regards
> Hendra
>
> --
> Suka linux?
> Kunjungi blog saya http://penguinroad.blogspot.com
>



-- 
Suka linux?
Kunjungi blog saya http://penguinroad.blogspot.com

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

Reply via email to