¡GoConqr estrena diseño! Cuéntanos qué te parece.

Fichas

SQL 1

dadou siplancin SQL vaze Inglés 20 fichas

SQL 1

Fichas del conjunto (20)

  1. 1Open up SQL command line.root@goorm:/workspace/aaa# mysql-ctl cli
  2. 2How to clear a querry in the terminal\c
  3. 3- Having a list of databases - Creating a database - Dropping a DB - Using a DB - To check which DB we're using- SHOW DATABASES;
    - CREATE DATABASE db_name;
    - DROP DATABASE db_name;
    - USE db_name;
    - SELECT database();
  4. 4Numeric types :• INT
    • SMALLINT
    • TINYINT
    • MEDIUMINT
    • BIGINT
    • DECIMAL
    • NUMERIC
    • FLOAT
    • DOUBLE
    • BIT
  5. 5String types• CHAR
    • VARCHAR
    • BINARY
    • VARBINARY
    • BLOB
    • TINYBLOB
    • MEDIUMBLOB
    • LONGBLOB
    • TEXT
    • TINYTEXT
    • MEDIUMTEXT
    • LONGTEXT
    • ENUM
  6. 6Date types• DATE
    • DATETIME
    • TIMESTAMP
    • TIME
    • YEAR
  7. 7- Max INT signed and unsignedINT is by default signed, INT (which is shorthand for INT SIGNED) therefore has the MAX VALUE of 2147483647. INT UNSIGNED is 0 to 4294967295.
  8. 8- VARCHAR - CHARVARCHAR : A variable-Length string between 1 and 255 characters.
    CHAR : A fixed-length string.
  9. 9- Creating a TABLE - Verifying it worksSHOW TABLES;
    OR
    SHOW COLUMNS FROM ;
    OR
    DESC ;
    - Creating a TABLE - Verifying it works
  10. 10Deleting a tableDROP ;
  11. 11Simple insertSimple insert
  12. 12Multiple insertMultiple insert
  13. 13- Null definition - How do we require a value cannot be null ?- Null means the value is unknown. (not egal zero !)- Null definition - How do we require a value cannot be null ?
  14. 14Setting Default ValuesSetting Default Values
  15. 15- Getting everything from a table - One column - Many columns- Getting everything from a table - One column - Many columns
  16. 16Changing the title of a columnChanging the title of a column
  17. 17To update valuesTo update values
  18. 18To delete something in particular :Cats named Egg will be removed from the table.
    Note : IDs will remain the same !
    To delete something in particular :
  19. 19To delete everything in the table :DELETE FROM cats;
  20. 20—

Información

Descripción
vaze SQL Fichas sobre SQL 1, creado por dadou siplancin el 14/02/2022.
Creado por
dadou siplancin
Visitas
0
Valoración

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?