Todos Nuevo

user:thomas gists creados por el usuario

title:mygist gists con el título indicado

filename:myfile.txt gists que contienen archivos con el nombre indicado

extension:yml gists que contienen archivos con la extensión indicada

language:go gists que contienen archivos con el lenguaje indicado

topic:homelab gists with given topic

Iniciar sesión


Todos Nuevo Iniciar sesión

All gists matching topic information-schema

Recientemente creado
Menos reciente creado
Recientemente actualizado
Menos reciente actualizado

timmy / 📝 資料庫也要有備註!MySQL 註解操作大全

0 gustos
0 bifurcaciones
1 archivos
Última actividad 8 months ago
資料表跟欄位都能加上說明!用 COMMENT 打造自帶說明的資料庫結構,不再只有你看得懂。
column-comment database dev-notes information-schema mysql sql table-comment
1 -- 建立一個名為 your_table_name 的資料表,並加上 Table 註解
2 CREATE TABLE your_table_name (
3 id INT PRIMARY KEY AUTO_INCREMENT, -- 自動遞增的主鍵
4 name VARCHAR(100) NOT NULL -- 使用者名稱(不可為 NULL)
5 )
6 COMMENT = '這是儲存使用者基本資訊的資料表'; -- Table 註解
7
8 -- 修改 your_table_name 的 Table 註解為新內容
9 ALTER TABLE your_table_name
10 COMMENT = '更新後的資料表註解內容';
Siguiente Anterior

Desarrollado por Opengist ⋅ Load: 19ms⋅

Español
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文