Q:

An ERROR 1064 occurs while creating a table using MySQL

I'm creating a new table after starting MySQL service.
I code it at Win10, on MySQL 8.0 command line Client. The code now is shown as below:
create table 't8' ('id1' timestamp not null default current_timestamp,'id2' datetime default null);

Then I got an error while I was executing it:

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 ''t8' ('id1' timestamp not null default
  current_timestamp,'id2' datetime defaul' at line 1

What should I do to fix it?

A:

Use it like this.
create table t8 (
    `id1` timestamp not null default current_timestamp,
    `id2` datetime default null
);

