Can someone please tell me what is wrong with this code? I am trying to create a table and then insert things into it so I can follow along with a tutorial on how to use Having and Group By statements in SQL.
CREATE TABLE writer
("poet" varchar(50) default NULL,"anthology" varchar(40) default NULL,"Copies_In_Stock" tinyint(4) default NULL);
It keeps returning a Syntax Error in CREATE TABLE
Thanks In Advance
Look here at the syntax for Create Table
http://www.w3schools.com/sql/sql_create_table.asp
I think that you need to remove the quotation marks from around your field names.
Alan
Click the * below to say thanks.
Database Principles
Pivot Table Tips
Good Excel Video Tutorials
Sumifs or SumProduct
DataPig Access Tutorials
MS Query Tutorial
Worst Pie Chart Ever?
Thanks, I tried to enter the code in that format, but still no luck. I'm going to study the syntax for what I am doing a little more in depth and post a solution if I find out! Thanks again for the help!
So, what does your latest code look like?
---
Ben Van Johnson
I don't think access has tinyint type. That's for SQL Server if I remembered it correctly.
To thank someone who has helped you, click on the star icon below their name.
I hate reading
Portfolio
I need a job.I am young and incompetent
JieJenn you were right, tinyint isnt supported by access and I had to take out the quotations and the word "default".....i was trying to enter a MySQL code into Access. Thanks!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks