SQLの種類: root@4881d5a2b209:/# mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 8.0.36-0ubuntu0.22.04.1 (Ubuntu)
使用するテーブル:商品マスタ
テーブルの詳細: mysql> show columns from 商品マスタ; +-----------------+-----------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-----------------+-----------+------+-----+---------+-------+ | 商品番号 | char(255) | NO | PRI | NULL | | | メーカ番号 | int | YES | | NULL | | | 商品名 | text | YES | | NULL | | | 売値 | int | YES | | NULL | | | 仕入値 | int | YES | | NULL | | +-----------------+-----------+------+-----+---------+-------+ 5 rows in set (0.00 sec)