SQL約束查詢返回“未選定行”?
SQL>select constraint_type from user_constraints where table_name='userinfo_p1';
輸出>未選定行
請(qǐng)問(wèn)為什么沒(méi)有輸出Constraint_name列?
SQL>select constraint_type from user_constraints where table_name='userinfo_p1';
輸出>未選定行
請(qǐng)問(wèn)為什么沒(méi)有輸出Constraint_name列?
舉報(bào)
2019-02-27
看了幾遍發(fā)現(xiàn)了? 最后查詢的表名要大寫(xiě)才行? 和添加數(shù)據(jù)沒(méi)關(guān)系
2019-02-26
你的表存在,語(yǔ)句也正確,出現(xiàn)這個(gè)問(wèn)題的原因是,你的表中沒(méi)有數(shù)據(jù),你可以給這個(gè)表增加一行數(shù)據(jù),然后再執(zhí)行這個(gè)操作。就可以輸出了。