Jump to content

How do I create a Y/N field in a table?


Conjurer

Recommended Posts

I\'ve used a number of databases going back as far as Rbase; but I am new to MySQL and was just trying to create some fields in a table that would be set to either yes or no.

 

I tried using a type of \"set\" and I got an error back. Do I use \"enum\" instead? Or just text with a size of 1?

Link to comment
https://forums.phpfreaks.com/topic/1194-how-do-i-create-a-yn-field-in-a-table/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.