I am using sybase as I am new to sybase prior to that I have used oracle now I have an database which consists of many table in sybase now there is a table named tarty now can you please advise the command that I can execute in sybase to know is there any primary key is there in tarty table or not .
here i got the solution for this..
select name
from sysindexes
where indid > 0
and status2 & 2 = 2
Can you also please advise that i want the table name also to be get listed for example the above command will show the primary key only i want the primary key plus the table name also to be listed so that i can know that this primary key belongs to this table please advise what necessary changes i need to do to achieve this..!