◀ 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
人気ページ
最近更新/作成されたページ
最近コメントのあったページ
- エミューレーター (2021-04-22 02:51:40)
- 【Springエラー】Field ... required a bean of type ... hat could not be found. (2021-04-22 02:46:01)
- 【Laravel】モデルのcreated_at/updated_atの別名指定 (2021-04-22 02:03:54)
- ids for this class must be manually assigned before calling save() (2021-04-22 01:47:49)
- インターフェース (2021-04-22 01:40:51)
- SEOにおけるサイトマップとRSS/Atom (2021-04-22 01:33:36)
- テーブル定義の確認 (2021-04-22 01:23:04)
- LaravelにおけるajaxでPOST通信する際の注意点 (2021-04-22 01:22:20)
- 【Laravelエラー】Cannot access protected property Illuminate\Http\Request::$... (2021-04-22 01:14:26)
- 【Spring】@Autowiredアノテーションとは (2021-04-22 01:08:52)
最近の質問
- 質問です (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.4 |
guest
| 2021-04-07 23:07:23
https://vsdoxycyclinev.com/ - doxycline hyclate 100mg purchaseNo.3 |
guest
| 2021-01-04 22:34:03
hello guos 9128738519No.2 |
guest
| 2020-12-30 03:38:07
Free Ed Pills Sample No Pre PlolaBub <a href=https://bansocialism.com/>cialis price</a> houlubcole whats best viagra cialisNo.1 |
guest
| 2020-12-16 19:27:05
【MySQLエラー】Incorrect column specifier for column 'カラム名' - IT技術総合Wiki | CWiki [url=http://www.g8h11ipj26y40zqm2410f81re2t5bfr9s.org/]urodfedsl[/url] <a href="http://www.g8h11ipj26y40zqm2410f81re2t5bfr9s.org/">arodfedsl</a> rodfedsl http://www.g8h11ipj26y40zqm2410f81re2t5bfr9s.org/