使用代碼對數據庫的增刪改

還沒開始就報錯: django.db.utils.IntegrityError: (1048, 「Column ‘regtime’ cannot be null」) 處理的方法是:我的一個表的數據是空的 加上去就可以了 不會用pycharm顯示錶數據只好用cmd了 1.#批量創建 User.objects.bulk_create([User(username=‘1tom2’),User(usern
相關文章
相關標籤/搜索