sql - Ordering a column while adding an identity column in an existing table in Sybase -
thanks forum, got number of solutions past queries, google too. first post in forum although.
i have table order columns pin, orderpath, quantity. there 5000 data in table already. now, want add identy column, orderid, order column pin.
using following query helps not in order required.
alter table order add orderid numeric(6,0) identity
here's see:
pin--orderpath--quantity--orderid 11 xyz/pop 200 1 22 kl/pod 100 2 33 djh/dd 200 3 44 dj/po 300 4
alter table orderadd add order_id datatype
Comments
Post a Comment