Skip to content

Commit

Permalink
Merge pull request #7654 from adrs1166ma/main
Browse files Browse the repository at this point in the history
#00 - sql
  • Loading branch information
Roswell468 authored Jan 22, 2025
2 parents 332a19f + 38660a7 commit 0184aff
Showing 1 changed file with 37 additions and 0 deletions.
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";

0 comments on commit 0184aff

Please # to comment.