if(MysqL_send("SELECT TABLE table HAS PRIMARY KEY") == TRUE) {
// do stuff here
}
最佳答案
SHOW INDEXES FROM TABLE WHERE Key_name = 'PRIMARY'
if(MysqL_send("SELECT TABLE table HAS PRIMARY KEY") == TRUE) {
// do stuff here
}
SHOW INDEXES FROM TABLE WHERE Key_name = 'PRIMARY'