$query = "CREATE TABLE 'one' ( 'numer' text NOT NULL, 'mass' text NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=utf8"; mysql_query ($query);
I try this, but it does not work
Instead of single quotes, you should use back quotes. In MySQL, they are designed to frame the names of tables and columns. Thus, you can use reserved words as names without fear that the analyzer will not be able to correctly parse the SQL query.
CREATE TABLE `one` ( `numer` text NOT NULL, `mass` text NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=utf8;
Source: https://ru.stackoverflow.com/questions/224088/
All Articles
one
(NOT null text NOT NULL,mass
text NOT NULL) ENGINE = MyISAM DEFAULT CHARSET = utf8; - alexandrone
(numer
text NOT NULL,mass
text NOT NULL) ENGINE = MyISAM DEFAULT CHARSET = utf8;"); - IVsevolod