Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yes/No True/False Datatypes

Status
Not open for further replies.

VeronicaCBurgess

Technical User
Apr 25, 2003
27
US
I am fairly new to MySql. My question is this: is there a Yes/No or True/False datatype in MySql?

I have a table with a column "inactive" which I would like to have a checkbox for in Dreamweaver. Can anyone shed some light on this?

 
have u checke the enum data type. here column values may be assigned only one menber of the value list

so u can have coloumn name status defined as
Code:
status enum("TRUE", "FALSE")
take care of double quotes in definition

and for usage u can test/assgin the value TRUE or FALSE to status field.
u can go upyo 65536 memebers in enum list

as of testing column incactive u can doit in the whatever programming language u are using by checkibng the value of status field





[ponder]
----------------
ur feedback is a very welcome desire
 
There is a BOOLEAN data type in the spec - which actually gets stored as a single bit integer value TINYINT(1)

So you have
Code:
0    meaning     False, No, Wrong, GoAway, Inactive
-1   meaning     True, Yes, Correct, Welcome, Active

or whatever other interpretations you want to place on the T/F alternatives that a Boolean value gives you.



'ope-that-'elps.





G LS
spsinkNOJUNK@yahoo.co.uk
Remove the NOJUNK to use.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top