Data types for MB fields

Support MB Custom Table Data types for MB fieldsResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #11668
    Lisa TallyLisa Tally
    Participant

    Is there a reference list of what data types should/can be used for each column in a custom table?

    The code examples only map what I assume are text fields (address, phone, and email) to TEXT NOT NULL and VARCHAR(20) NOT NULL

    I am most interested in what data type to use for radio button groups, checkbox lists, image advanced, wysiwyg, and post.

    #11682
    Anh TranAnh Tran
    Keymaster

    Hi Purdue,

    All types should use text or equivalent type for storing the data. So TEXT NOT NULL is the general type.

    But if your data is short, or you want to tell MySQL to index the field (e.g., making the field a key), then you should use VARCHAR(length) NOT NULL. MySQL can't index a text field without knowing its max length.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.