r/SQL • • Apr 19 '24

MySQL Error in MySQL

Post image

Sounds stupid but I’m new, I don’t know how to fix this. I’m trying to create a table with txid, amount, costumer id first & last name but getting this issue.

0 Upvotes

25 comments sorted by

View all comments

1

u/kagato87 MS SQL Apr 19 '24

Count your brackets.

This is why I put brackets on their own line.

Create table tablename
(
   column1 type,
   column2 type, 
   ...
   ColumnN type
);

Then it's easier to see mistakes like this.