How to get all check constraints from a SQLite table?

时间:2018-02-03 07:46:23

标签: android sqlite android-sqlite

Is there any pragma command to do this? Or the only way is to SELECT sql FROM sqlite_master and parse the result somehow in order to get what i need? If so can you give some example on how to parse an SQLString like this

 CREATE TABLE `People` (
    `_id`   INTEGER PRIMARY KEY AUTOINCREMENT,
    `Name`  TEXT NOT NULL,
    `Salary` INTEGER NOT NULL CHECK(Salary>1000),
    `idCar` INTEGER,
    FOREIGN KEY(`idCar`) REFERENCES `Cars`(`_id`)
);

0 个答案:

没有答案
相关问题