-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7654 from adrs1166ma/main
#00 - sql
- Loading branch information
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
Roadmap/00 - SINTAXIS, VARIABLES, TIPOS DE DATOS Y HOLA MUNDO/sql/adrs1166ma.sql
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
-- https://www.sql.org/ | ||
|
||
-- Comentario en una linea | ||
|
||
/* Comentario en | ||
varias lineas | ||
*/ | ||
|
||
DECLARE @my_var VARCHAR(50); | ||
SET @my_var = 'Esta es la variable'; | ||
|
||
-- Datos Primitivos | ||
DECLARE @type_numeric INTEGER; | ||
SET @type_numeric = 14; | ||
|
||
DECLARE @type_real REAL; | ||
SET @type_real = 10.5; | ||
|
||
DECLARE @type_char CHAR; | ||
SET @type_char = 'sinEspacios'; | ||
|
||
DECLARE @type_varchar VARCHAR; | ||
SET @type_varchar = 'Con espacios'; | ||
|
||
DECLARE @type_boolean BOOLEAN; | ||
SET @type_boolean = true; | ||
|
||
DECLARE @type_date DATE; | ||
SET @type_date = '2024-04-21'; | ||
|
||
DECLARE @type_time TIME; | ||
SET @type_time = '23:57:10'; | ||
|
||
DECLARE @type_timestamp TIMESTAMP; | ||
SET @type_char = '2025-01-20 23:58:02'; | ||
|
||
PRINT "Hola, SQL"; |