Upgrade to Pro — share decks privately, control downloads, hide ads and more …

[春のDojo祭り'23] いまからでも遅くない!データベース超入門 ハンズオン編

[春のDojo祭り'23] いまからでも遅くない!データベース超入門 ハンズオン編

2023/5/29開催Dojoの資料です。

Kwangsoo Lee

May 30, 2023
Tweet

More Decks by Kwangsoo Lee

Other Decks in Technology

Transcript

  1. 19 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation Paiza.io https://paiza.io/ja/projects/new?language=mysql myCompiler https://www.mycompiler.io/es/new/mysql trysql_editor https://www.w3schools.com/mySQl/trymysql.asp?filename=trysql_editor OneCompiler https://onecompiler.com/mysql
  2. 20 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation ※ SQL show databases;
  3. 22 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 1 CREATE TABLE Test(id int, title text); SQL ( ) SQL( ) CREATE TABLE [ ]([ 1] [ ], [ 2] [ ]..); SQL
  4. 23 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 1 INSERT INTO Test(id, title) VALUES (1," "); SQL ( ) SQL( ) INSERT INTO [ ]([ 1], [ 2]..) VALUES ([ 1],[ 2]..); SQL
  5. 24 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 1 SELECT * FROM Test; SQL ( ) SQL( ) SELECT [ ] FROM [ ]; SQL
  6. 26 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 2 UPDATE Test SET title=" "; SQL ( ) SQL( ) UPDATE [ ] SET =“[ ]"; SQL
  7. 27 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 2 ALTER TABLE Test RENAME COLUMN title TO greeting; SQL ( ) SQL( ) ALTER TABLE [ ] RENAME COLUMN [ ] TO [ ]; SQL
  8. 29 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 3 DELETE FROM Test; SQL ( ) SQL( ) DELETE FROM [ ] SQL
  9. 30 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 3 SQL( ) DROP TABLE Test; SQL ( ) DROP TABLE [ ]; SQL
  10. 32 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 4 CREATE TABLE Test(id integer, title text); INSERT INTO Test(id, title) VALUES (1," "); INSERT INTO Test(id, title) VALUES (2," "); SELECT * from Test; SQL
  11. 33 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 4 SELECT [ ] FROM [ ] WHERE [ ]; SQL SELECT * FROM Test WHERE id= 2; UPDATE [ ] SET title=" [ ] " WHERE [ ]; UPDATE Test SET title= " " where id = 2;
  12. 34 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation - 4 SELECT [ ] FROM [ ] ORDER BY [ ] [ or ] SQL ORDER BY SELECT * FROM Test ORDER BY id DESC; ※ ASC DESC
  13. 35 Customer Success, IBM Technology, Japan / © 2023 IBM

    Corporation SELECT No, , , … FROM sales WHERE = 3/15 Sales