Book a Demo

Author Topic: Usar ENUM MySQL  (Read 3633 times)

crono

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Usar ENUM MySQL
« on: June 20, 2011, 12:09:32 pm »
Buenas noches,

¿Alguien sabe como usar el ENUM de MySQL para un campo de una tabla?

En ayuda dice:

"Tenga en cuenta: Para MySQL, antes de crear columnas primero agregue ENUM y los tipos de datos SET. Seleccione la opción Configuraciones | Tipos de datos de la base de datos y, en la ventana Tipo de datos de  base de datos, en el campo Nombre del producto seleccione MySQL. Agregue los tipos de datos ENUM y SET."[sic]

Pero no brinda ningún ejemplo de como hacerlo.
Pude agregar el campo ENUM, pero no se donde se especifican los valores que se permiten en el ENUM.

¿Alguien puede ayudarme?

Gracias y saludos.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Usar ENUM MySQL
« Reply #1 on: June 20, 2011, 12:59:09 pm »
Quote
Goodnight

Does anyone know how to use MySQL ENUM field for a table?

In support says:

"Note: For MySQL, before creating first add ENUM columns and data types SET. Select Settings | Types of data and database, the data type window database in product Name field select MySQL. Add the data type ENUM and SET. "[sic]

But it provides no example of how.
ENUM could add the field, but not where you specify the values [ch8203][ch8203]allowed in ENUM.

Can anyone help me?

Thanks and regards.
(Translation by Google)
The Sparx Team
[email protected]

hd

  • EA Administrator
  • EA User
  • *****
  • Posts: 312
  • Karma: +0/-0
    • View Profile
Re: Usar ENUM MySQL
« Reply #2 on: June 20, 2011, 03:59:27 pm »
http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/modeling_languages/createcolumns.html

See Notes half way down the page...

Quote
•For MySQL ENUM and SET datatypes, in the Initial field type the values as a comma-separated list, in the format ('one','two','three') or, if one value is the default, in the format: ('one','two','three') default 'three'.
 


crono

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Usar ENUM MySQL
« Reply #3 on: June 21, 2011, 02:22:51 am »
Quote
http://www.sparxsystems.com/enterprise_architect_user_guide/8.0/modeling_languages/createcolumns.html

See Notes half way down the page...

Quote
•For MySQL ENUM and SET datatypes, in the Initial field type the values as a comma-separated list, in the format ('one','two','three') or, if one value is the default, in the format: ('one','two','three') default 'three'.
 



Muchas gracias!!! En la traducción al español no esta esa información.

Saludos!