db中 1或0或空值(沒資料)如何區分

2 views
Skip to first unread message

柯俊宏

unread,
Apr 28, 2008, 5:15:32 AM4/28/08
to AskHoamon
當我輸入一筆資料時,某些欄位是1、某些欄位是0、某些欄位是無資料,
而無資料部份,到時候會是抓到0...還是???

阿蒙

unread,
Apr 29, 2008, 11:46:18 AM4/29/08
to AskHoamon
無資料(None) 與 0 是不同意思的,要看你當時有沒有設定 isnull=True 。
Reply all
Reply to author
Forward
0 new messages