android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed - zx19899891的專欄

android.database.sqlite.SQLiteConstraintException: error code 19: constraint failed - zx19899891的專欄

瀏覽:484
日期:2024-07-17
在android進行單元測試時,測試了自己編寫的添加數據到資料庫的函數,其測試函數如下:public void testAdd() { StudentDAO studentDAO = new StudentDAO(this.getContext()); Student student = new Student(1, lily, 20); studentDAO.add...看更多