Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQLの基本をざっと理解する #12

Open
itume opened this issue Oct 19, 2019 · 1 comment
Open

SQLの基本をざっと理解する #12

itume opened this issue Oct 19, 2019 · 1 comment
Labels
Projects

Comments

@itume
Copy link
Collaborator

itume commented Oct 19, 2019

No description provided.

@itume itume added the 0.5 label Oct 19, 2019
@itume itume added this to やること in 復習 via automation Oct 19, 2019
@tararico
Copy link
Owner

tararico commented Dec 11, 2019

  • show tables;でテーブル一覧を確認できる
  • SELECT文
    SELECT カラム名1, カラム名2, ... FROM テーブル名 [WHERE 絞込条件];
  • INSERT文
    INSERT INTO テーブル名 (カラム名1, カラム名2, ...) VALUES (値1, 値2, ...);
  • UPDATE文
    UPDATE テーブル名 SET カラム名1=値1 [カラム名2=値2 ...] [WHERE 絞込条件];
  • DELETE文
    DELETE FROM テーブル名 [WHERE 絞込条件];
  • トランザクションは1つ以上のSQL文を含む論理作業単位。
    トランザクションは、最初の実行可能なSQL文から開始し、コミットまたはロールバックされた時点で終了する。
    • コミット…トランザクションを確定させる処理
    • ロールバック…トランザクションを取り消す処理
      参考URL

@tararico tararico moved this from やること to 作業中 in 復習 Dec 11, 2019
@tararico tararico moved this from 作業中 to 完了 in 復習 Dec 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
復習
  
完了
Development

No branches or pull requests

2 participants