For example, if I have following code:
#people( sin, name, height,weight,eyecolor, haircolor,addr,gender,birthday )
sin = input("sin ---->")
gender = input("gender ---->")
I need check whether 'sin' is an integer or say, a 'INT' in oracle data type.
And whether gender is f or m.
How can I do this? Is there any different way from:
while gender != 'f' or gender != 'm':
gender = input("gender ---->")
The two attributes above will be insert into my database by SQL statement
I am using cx_Oracle