Reputation: 61
Can anybody tell me how to create columns with space like "FULL NAMES"? I've tried like the following but it doesn't work.
CREATE TABLE info
(
Full Names varchar(20),
Physical Address varchar(20),
Moviesrented varchar(100),
Salutation varchar(20),
Category varchar(20),
PRIMARY KEY (address)
)
Upvotes: 6
Views: 13821
Reputation: 5739
Just put the name in backticks:
CREATE TABLE info (`Full Names` varchar(20), ...)
But that's no good handle for naming your columns.
Upvotes: 8
Reputation: 263723
I wonder why you want that. But to answer your question, wrap it with backticks.
`Full Names` VARCHAR(20)
Upvotes: 3