Created
April 28, 2014 13:21
-
-
Save alastori/11371854 to your computer and use it in GitHub Desktop.
MySQL - teste simples de criação de database e tabela com colunas auto-increment e varchar
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 DATABASE meudb; | |
SHOW DATABASES; | |
USE meudb; | |
CREATE TABLE simples (id INT AUTO_INCREMENT PRIMARY KEY, texto VARCHAR(200)); | |
INSERT INTO simples VALUES (NULL, 'Primeiro teste'); | |
SELECT * from simples; | |
INSERT INTO simples VALUES (NULL, 'Segundo teste'); | |
SELECT * from simples; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment