I am attempting to convert myself from MySQL to Sybase ...
and would appreciate your help ...
I am trying to specify autoincrement columns and primary keys etc... in a select into statemment
In Mysql:
Looking for the equivalent in Sybase.. and have tried adding the column definitions to the into statement without success...
and would appreciate your help ...
I am trying to specify autoincrement columns and primary keys etc... in a select into statemment
In Mysql:
Code:
create table myrank (rank int(8) unsigned not null autoincrement, primary key comp(cid,rank))
select
cid,
orddate,
attribute1,
attribute2
from mytable
order by cid,orddate desc;
Code:
select
cid,
orddate,
attribute1,
attribute2
into myrank (rank int(8) unsigned not null autoincrement, primary key comp(cid,rank))
from mytable
order by cid,orddate desc;
[/code
I am having to go through perl DBI ODBC to get to Sybase so unclear as to what version of Sybase
Thanks in advance.. including a point at the right bit of the Sybase manual online