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","[email protected]"),("Avram","[email protected]"),("Mufutau","[email protected]"),("Malachi","[email protected]"),("Victor","[email protected]"),("Geoffrey","[email protected]"),("Chaney","[email protected]"),("Emerson","[email protected]"),("Xanthus","[email protected]"),("Elvis","[email protected]");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment