我需要针对这些SQL查询的等效SAP Hana查询
SELECT * FROM INFORMATION_SCHEMA.KEY_COLUMN_USAGE
SELECT * FROM INFORMATION_SCHEMA.REFERENTIAL_CONSTRAINTS
SELECT * FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
我试过这个
SELECT * FROM SYS.KEY_COLUMN_USAGE
SELECT * FROM SYS.REFERENTIAL_CONSTRAINTS
SELECT * FROM SYS.TABLE_CONSTRAINTS
SYS.REFERENTIAL_CONSTRAINTS效果很好。但我没有得到SYS.KEY_COLUMN_USAGE和SYS.TABLE_CONSTRAINTS的等效表
答案 0 :(得分:0)
您检查了sys.constraints系统视图吗?
SELECT * FROM SYS.CONSTRAINTS