Solved

Why does this CREATE Table statement not work?

Posted on 2014-12-16
3
181 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
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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Foreword In the years since this article was written, numerous hacking attacks have targeted password-protected web sites.  The storage of client passwords has become a subject of much discussion, some of it useful and some of it misguided.  Of cou…
As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now