Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

show all foreign keys - SQL Anywhere

Can anyone tell me how to list all the foreign keys in a SQL Anywhere database ?

like image 882
WinSupp Avatar asked Dec 06 '25 09:12

WinSupp


1 Answers

Take a look at the SYS.SYSFOREIGNKEYS system table. It lists the primary table, foreign table, foreign key name, and the column(s) involved.

Disclosure: I work for SAP in SQL Anywhere engineering.

like image 182
Graeme Perrow Avatar answered Dec 08 '25 21:12

Graeme Perrow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!