tags:

views:

20

answers:

1

Is it possible to define (alias) a base data type in MySQL?

Currently I would like to define UUID as char(32), and then use UUID as the type throughout the schema definition. As we're prototyping at the moment, UUID is very likely to change - I'd like to ensure that this change is reflected consistently throughout the schema.

I'm thinking something like:

alias type UUID char(32);

Thanks in advance!

+1  A: 

My research on this to date suggests the answer is no.

http://dev.mysql.com/doc/refman/5.5/en/data-types.html

I look forward to being proven wrong... ;).

kwutchak