Solved

Why does this CREATE Table statement not work?

Posted on 2014-12-16
3
186 Views
Last Modified: 2014-12-16
Here's my CREATE TABLE statement:

CREATE TABLE 'volte7' ('Num Days' varchar(20)DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1

I keep getting an error that says something is wrong with my syntax and I can't figure out what it is.

What's wrong?
0
Comment
Question by:brucegust
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Accepted Solution

by:
Steve Wales earned 350 total points
ID: 40503258
Two things immediately come to mind.

* Space between varchar(20) and DEFAULT
* I believe that the 'quotes' around object names in MySQL is the back quote (usually the key to the left of 1 on US keyboards), not a regular quote - so ` not '
0
 
LVL 58

Assisted Solution

by:Gary
Gary earned 150 total points
ID: 40503264
CREATE TABLE volte7 (`Num Days` varchar(20) DEFAULT NULL) ENGINE=InnoDB DEFAULT CHARSET=latin1

Open in new window

0
 

Author Closing Comment

by:brucegust
ID: 40503357
Excellent
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction In this installment of my SQL tidbits, I will be looking at parsing Extensible Markup Language (XML) directly passed as string parameters to MySQL 5.1.5 or higher. These would be instances where LOAD_FILE (http://dev.mysql.com/doc/refm…
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question