#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    3
    Rep Power
    0

    Object Type In Mysql


    Hi all,

    Is there anyway to declare an Object type as user define into MySQL? Then i use this object type for other purposes.

    Thank you,
    Thuan.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Location
    Italy
    Posts
    36
    Rep Power
    2
    No, MySQL only has atomic types (plus set, which is a sort of easy-to-use bitmask).

    You can emulate properties with the fields in a table. To pass around the object you can use the table's primary key. And to emulate methods, you can use stored procedures and functions.

    Hope that this hint helps.

IMN logo majestic logo threadwatch logo seochat tools logo