0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

よく使うSQL文

Last updated at Posted at 2025-12-05

データベースの操作でよく使用するSQL文

SQL文 説明
SELECT データベースからデータを取得
WHERE 取得するデータに条件を指定
ORDER BY 取得したデータを特定の列で並べ替え
JOIN 複数のデータを統合して取得
GROUP 特定の列の値ごとにグループ化
INSERT INFO 新しい行をテーブルに挿入
UPADATE 既存の行のデータを更新
DELETE FROM 既存の行をテーブルから削除
CLEATE TABLE 新しいテーブルを作成
ALTER TABLE 既存のテーブルの構造を変更
DROP TABLE テーブルを完全に削除
LIMIT 取得する行の最大数を指定
COUNT() 条件に一致する行の総数を数える
0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?