実現したいこと
コマンドプロンプトにて、sqlでテーブルを作成したい
前提
コマンドプロンプトにて、sqlでテーブルを作成したいのですがエラーが発生してしまいます。対処方法を教えていただけないでしょうか。
よろしくお願いします。
発生している問題・エラーメッセージ
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'current_timestamp )' at line 9
該当のソースコード
mysql> create table cafe.contacts( id int primary key auto_increment, name varchar(50) not null, kana varchar(50) not null, tel varchar(11), email varchar(100) not null, body text, create_at datetime current_timestamp );

0 コメント