I have some tables on sybase-iq data base, created for example:
create table tab
(
id int not null IQ Unique (10)
)
How can I check if table tab was created with iq unique option?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
We can do that using procedure
sp_column. It returns informations about every column in the table. In aest_cardinalitycolumn is the value fromIQ Unique. For example:returns
Here is link to documentation.