◀ 12. 【MySQLエラー】Incorrect column specifier for column 'カラム名' ▶
エラー内容
Incorrect column specifier for column 'カラム名' |
発生条件/原因/対処法
ALTER TABLE文でAUTO_INCREMENTを付与した際に発生するエラー。(他のケースもある場合は追記)
対象カラムのデータ型がintではなくdecimalであったりAUTO_INCREMENTの許容するデータ型ではない場合に発生する。
以下のようにAUTO_INCREMENT付与のタイミングでデータ型も修正すればよい。
ALTER TABLE テーブル名 MODIFY `カラム名` int(10) NOT NULL AUTO_INCREMENT; |
子ページ
子ページはありません
同階層のページ
- 1071 Specified key was too long; max key length is 767 bytes (SQL: alter table `~` add unique `~`(`~
- ERROR 1063 (42000): Incorrect column specifier for column '~'
- mysqld: Can't change dir to '...\MySQL\MySQL Server X.X\data\' (OS errno 2 - No such file or directory)
- Install/Remove of the Service Denied!
- Datetime型がNULLに見える
- Warning: World-writable config file '/etc/mysql/my.cnf' is ignored
- ERROR 1698 (28000): Access denied for user 'root'@'localhost'
- Exception: Wrong MySQL configuration
- [Warning] TIMESTAMP with implicit DEFAULT value is deprecated.
- ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
- ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
- BLOB/TEXT column 'description' used in key specification without a key length
- ERROR: /bin/sh: mysql_config: コマンドが見つかりません
- Host ... is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
- CSVエクスポート時に「ERROR 1045 (28000): Access denied for user 'username'@'localhost' (using password: YES)」
- Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging. InnoDB is limited to row-logging when transaction isolation level is READ COMMITTED or READ UNCOMMITTED.
- 1
- 1
- 1)
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1"'`--
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1)
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1
- 1"'`--
- 1
- 1
- SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: ~
人気ページ
最近更新/作成されたページ
- dasdsa (2022-11-13 07:57:24)
- Sydney top independent escorts (2022-11-13 07:56:58)
- 'include' is not defined (2022-06-09 22:05:10)
- 【django】ログイン 認証機能 (2022-06-06 14:30:24)
- [Dockerエラー] WSL 2 installation is incomplete. (2022-06-02 15:34:14)
- 【Laravelエラー】does not comply with psr-4 autoloading standard. Skipping. (2021-11-28 18:13:59)
- 複数のデータベースに接続する方法 (2021-11-16 12:58:24)
- SQLSTATE[22007]: Invalid datetime format: 1366 Incorrect string value: ~ (2021-11-07 07:19:55)
- 【Laravelエラー】Invalid request (Unsupported SSL request) (2021-11-01 04:19:34)
- 【Laravelエラー】Database hosts array is empty. (2021-10-04 00:01:48)
最近コメントのあったページ
- 【PHPフレームワーク】Laravelの使い方 (2023-02-06 06:06:49)
- 【Spring】@Serviceアノテーションとは (2023-02-06 06:06:02)
- サーバーとプロジェクトの紐づけ (2023-02-06 06:05:45)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-06 05:49:31)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-06 05:17:06)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-06 04:26:43)
- 抽象クラスの概念と必要性 (2023-02-06 04:25:34)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-06 03:36:30)
- 【Spring Boot (JPA編)】DB接続設定からエンティティおよびリポジトリの作成、値の取得まで (2023-02-06 03:35:30)
- プロキシ (2023-02-06 03:18:30)
最近の質問
- 質問です (2020-02-20 12:19:36)
- フリーランスの単価って高いですか? (2020-02-12 19:56:16)
- 情報系のaoを受けるつもりなんですが何かおすすめのソフトはありますか? (2020-02-12 19:54:22)
- test3 (2020-02-08 23:50:54)
- セレクトボックスのCSSのcontentで三角の部分が押せない (2019-07-03 13:06:10)
- GCPのwp-config.phpでpermission denied (2019-06-05 20:04:08)
- Spring FrameworkのEntityのカラム名の大文字小文字、アンスコについて (2019-02-01 07:13:49)
- PHP(Laravel)からPythonのプログラムを呼び出したいのですがどうすればよいでしょうか。 (2018-12-06 06:26:57)
- djangoを本番環境にデプロイしたいのですがどのレンタルサーバー or VPSサーバーがよいですか (2018-12-01 12:04:18)
- Django administrationのUsernameとPasswordについて (2018-11-30 11:55:20)
- Google Adsenseでアダルトコンテンツと誤認されてしまいました。 (2018-09-09 17:15:36)
- Google MapsをUnityで使用する方法&料金 (2018-08-28 02:37:26)
- Amazon PA-APIのSort=salesrankが効かない (2018-07-21 08:54:25)
- 楽観ロックと悲観ロックの違い (2018-01-11 05:05:33)
- レンタルサーバーって沢山ありますけどどこがいいでしょうか?AWSってどうなんですか? (2018-01-09 10:03:20)
- ディープラーニングのライブラリってどれがオススメですか? (2018-01-06 05:15:40)
- Webスクレイピングってどこまでが違法なんでしょうか? (2018-01-06 05:09:08)
- 人工知能(AI)、機械学習、ディープラーニングの違い (2018-01-06 02:40:44)
コメント一覧
コメントを削除してもよろしいでしょうか?
No.13 |
guest
| 2023-01-24 00:49:15
coursework sample of written work [url="https://brainycoursework.com"]coursework plagiarism[/url] degree courseworkNo.12 |
guest
| 2022-11-29 07:37:07
cheap essays <a href=https://buytopessays.com>best custom essay writing services</a> cheapest essay writing serviceNo.11 |
guest
| 2022-11-27 22:22:11
paid essay writers <a href=https://buy-eessay-online.com>best essay helper</a> best mba essay writing serviceNo.10 |
guest
| 2022-11-26 13:12:22
help me write a essay <a href=https://buyacademicessay.com>best college essay editing service</a> custom english essaysNo.9 |
guest
| 2022-11-25 03:58:50
essay help pros <a href=https://bestsessays.org>college essay help nyc</a> can you write my essayNo.8 |
guest
| 2022-11-23 20:13:10
essay writers cheap <a href=https://bestessaysden.com>the best essay writer</a> i cant write my essayNo.7 |
guest
| 2022-11-22 11:31:44
custom writing essays <a href=https://bestessayreviews.net>essays about community service</a> critical essay helpNo.6 |
guest
| 2022-11-21 03:22:08
essay proofreading service <a href=https://besteasyessays.org>need someone to write my essay</a> admission essay editing servicesNo.5 |
guest
| 2022-11-19 20:17:30
best online essay writing service <a href=https://bestcampusessays.com>college application essay editing services</a> online help with essay writingNo.4 |
guest
| 2022-11-16 18:45:52
looking for someone to write my essay <a href=https://au-bestessays.org>writing essays services</a> us essay writing servicesNo.3 |
guest
| 2021-01-04 22:34:03
hello guos 9128738519