Created
April 12, 2023 00:45
-
-
Save rugi/e21ca19bea35e920366c47ab6f260e3f to your computer and use it in GitHub Desktop.
SQL Standar. Creación de tabla, inserción y recuperación de registros.
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
#Se selecciona nuestra bbdd | |
USE demo001; | |
#Creamos nuestra tabla | |
CREATE TABLE COLORES( | |
ID int, | |
NOMBRE varchar(100), | |
RGB varchar(6) | |
); | |
#agregamos 3 registros | |
INSERT INTO COLORES (ID, NOMBRE, RGB) VALUES (1,'Rojo','FF0000'); | |
INSERT INTO COLORES (ID, NOMBRE, RGB) VALUES (2,'Verde','00FF00'); | |
INSERT INTO COLORES (ID, NOMBRE, RGB) VALUES (3,'Azul','0000FF'); | |
#Los mostramos | |
Select * from COLORES |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment