M
M
Mikhail Lebedev2021-01-13 14:23:24
SQL
Mikhail Lebedev, 2021-01-13 14:23:24

SQL query(s) to the database?

What's wrong with the request? I checked the manual several times - there is such a request, but it gives me an error

CREATE TABLE 'textlog' (
    'id' int(11) NOT NULL,
    'chat_id' int(111) NOT NULL,
    'text' text CHARACTER SET NOT NULL,
    'date' datetime NOT NULL DEFAULT CURRENT_TIMESTAMP   
) ENGINE=MyISAM DEFAULT CHARSET=utf8;


Found 4 errors during analysis.

Symbol name expected! (near "'id'" at position 30)
Expected at least one column declaration. (near "'id'" at position 30)
Unexpected start of expression. (near "11" at position 39)
Unknown operator. (near "NOT NULL" at position 43)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rsa97, 2021-01-13
@zaza41rus

'id' - string
`id` - column/table/database name

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question