I am looking for a query that tells me NAME of the primary key of a tableExample: In oracle, I do this
select CONSTRAINT_NAME from user_constraints, where table_name = 'CT' AND CONSTRAINT_TYPE = 'P'
how to do it in sybase?
Try as follows:
select name from sysindexes where indid > 0 and status2 & 2 = 2
Source: https://habr.com/ru/post/1486563/More articles:How to create a newsletter link? - phpMultiple Apache rewrite rules - apacheCan I call the search program programmatically, with some parameters that are already filled in and cannot be edited? - searchPython recursively shorten a list (combinations / permutations) - pythonFileNotFoundException for apk file with HttpURLConnection in Android - javaAccess IXMLDOMDocument2 via TXMLDocument? - delphiThe range in VBA is superior - vbaMake Highchart use a specific target time zone - javascriptChange argv command line argument - c ++Using Python rdflib: how to include literals in sparql queries? - pythonAll Articles