Skip to content

Instantly share code, notes, and snippets.

@jlamim
Last active April 28, 2016 03:38
Show Gist options
  • Save jlamim/1209bb7d1adc070749e6bdcd67c0338e to your computer and use it in GitHub Desktop.
Save jlamim/1209bb7d1adc070749e6bdcd67c0338e to your computer and use it in GitHub Desktop.
Importando dados CSV com CodeIgniter - SQL
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