List:General Discussion« Previous MessageNext Message »
From:Jeff Lanzarotta Date:July 28 2009 6:36pm
Subject:User Defined Types
View as plain text  
Hello,

I am evaluating MySQL. I am coming from Microsoft SQL Server 2005.

This may have been discussed before but I have not been able to find it. In SQL Server you
are able to define a user-defined type like this:

CREATE TYPE [dbo].[status] FROM INT NOT NULL

This will allow you to then define columns like this:

CREATE TABLE [dbo].[tableName]
(
    [statusColumn] [dbo].[status]
)

Is there such a thing in MySQL?

Thanks,

Jeff

Thread
User Defined TypesJeff Lanzarotta28 Jul
  • RE: User Defined TypesGavin Towey28 Jul
    • RE: User Defined TypesJeff Lanzarotta28 Jul