Solved

Why does this CREATE Table statement not work?

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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

More Fun with XML and MySQL – Parsing Delimited String with a Single SQL Statement Are you ready for another of my SQL tidbits?  Hopefully so, as in this adventure, I will be covering a topic that comes up a lot which is parsing a comma (or other…
Creating and Managing Databases with phpMyAdmin in cPanel.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

18 Experts available now in Live!

Get 1:1 Help Now