This file contains hidden or 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
persona = { | |
nombre: "kyary", | |
edad: 24, | |
twitter: "twitter.pamyurin" | |
} | |
puts "desea añadir una clave y valor al hash? : " | |
resp = gets.chomp | |
if resp == "si" | |
puts "cual es el nombre de la nueva clave?? : " | |
resp_clave = gets.chomp.to_sym |
This file contains hidden or 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 cliente ( | |
`id` int(11) NOT NULL, | |
`name` varchar(128) COLLATE utf8_unicode_ci NOT NULL | |
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci; | |
INSERT INTO cliente VALUES(1, 'Coca-Cola'); | |
INSERT INTO cliente VALUES(3, 'IBM'); | |
INSERT INTO cliente VALUES(4, 'Logitech'); | |
INSERT INTO cliente VALUES(2, 'Toyota'); |
NewerOlder