MySQL Forums
Forum List  »  Spanish

Re: Importar datos desde csv a campos varchar
Posted by: William Chiquito
Date: June 14, 2007 05:12PM

Hola Juan,

Trata creando tu tabla "temporal" de la siguiente manera:
DROP TABLE IF EXISTS `temporal`;

CREATE TABLE `temporal` (
  `NOMBRE` varchar(40) character set latin1 default NULL,
  `FACTURA` varchar(20) character set latin1 default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_spanish_ci;
Debes ser muy cuidadoso si vas a cambiar el juego de caracteres de tu servidor, esto puede traerte problemas con los datos ya almacenados, debes hacer un buen set de pruebas antes de hacer el cambio en tu servidor de producción.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.