Last active
April 28, 2016 03:38
-
-
Save jlamim/1209bb7d1adc070749e6bdcd67c0338e to your computer and use it in GitHub Desktop.
Importando dados CSV com CodeIgniter - SQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS `contatos` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`nome` varchar(255) DEFAULT NULL, | |
`email` varchar(255) DEFAULT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=InnoDB; | |
# Cria alguns registros na tabela 'contatos' | |
INSERT INTO `contatos` (`nome`,`email`) VALUES ("Hayes","commodo.tincidunt@aliquamadipiscinglacus.org"),("Avram","sem.Pellentesque.ut@molestietellusAenean.org"),("Mufutau","in.sodales.elit@nunc.org"),("Malachi","sagittis.felis@Ut.co.uk"),("Victor","orci.luctus.et@Phasellusdolor.net"),("Geoffrey","Cras.interdum@ligula.ca"),("Chaney","mi@Cumsociis.net"),("Emerson","Curae@semutdolor.co.uk"),("Xanthus","dolor.sit.amet@nasceturridiculus.co.uk"),("Elvis","dis@ipsumnuncid.com"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment