[DB-SIG] RE: null value doubt?
Mohideen Abdul Kader
sa_mak@yahoo.com
Thu, 29 Jun 2000 21:58:50 -0700 (PDT)
hello sir
in many table contains no value (i.e., empty
records)
how can i check if the table contains null value?
i using the following code ,from that code i
cannot get null value
pls exaplain and give sample
>>> s.execute("select * from tbllogin where
username='mak'")
>>> for x in s.fetchall():
..... print x[0]
.....
>>>
from the above code return null value , how can i
check x[]0 contains null vlaue pls
give the example if python contains any isnull or
isempty or null keywords
if x[0]<>'':
print "Empty"
else:
print x[0]
i also checking the above code but 'Empty' vlaue is
not dislpay
bye
Mohideen Abdul Kader M N
34,Veerabathran Street
Nungabakkam,Chennai-600 034
India
phone: 8210977/6
www.preciousmicrotech.com
sa_mak@hotmail.com
__________________________________________________
Do You Yahoo!?
Get Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/