Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在搜索一个查询,告诉我一个表示 例的主键名称:在 oracle 我这样做
从 user_constraints 中选择 CONSTRAINT_NAME,其中 table_name = 'CT' AND CONSTRAINT_TYPE ='P'
如何在 sybase 中做到这一点?
试试这个方法:
select name from sysindexes where indid > 0 and status2 & 2 = 2