Consider the following CREATE TABLE query :
CRAETE TABLE tablename (100 VARCHAR(10), 200 VARCHAR(10));
In this query, 100
and 200
are column names. Is it possible to create tables like this ?
Consider the following CREATE TABLE query :
CRAETE TABLE tablename (100 VARCHAR(10), 200 VARCHAR(10));
In this query, 100
and 200
are column names. Is it possible to create tables like this ?
From the manual
Identifiers may begin with a digit but unless quoted may not consist solely of digits.
Yes it is possible but you need to wrap those values with backticks.
CREATE TABLE tablename
(
`100` VARCHAR(10),
`200` VARCHAR(10)
);