title: Error AS-->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 ',
body: <p>I have created my first database name &quot;Enote&quot; and database table name &quot;user&quot;
  <a href="https://i.stack.imgur.com/w2HQ5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/w2HQ5.png" alt="enter image description here" /></a></p>
  <p><em>And i want to create another table with same database name &quot;<strong>Enote</strong>&quot; and but another database table name =&quot;<strong>post</strong>&quot; but i'm not able to create table as show below :</em></p>
  <pre><code>create table post
   (id int not null auto_increment,
   title varchar(45) not null,
   content varchar(45) not null,
   date timestamp null default,
   uid int not null
   constraint uid primary key (id)
   foreign key (uid) references user (id)
   on delete cascade
   on update cascade); 
  </code></pre>
  <p>following is the error what i get while creating table &quot;<strong>post</strong>&quot;:<a href="https://i.stack.imgur.com/gXuVE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gXuVE.png" alt="enter image description here" /></a></p>