ALTER TABLE и SQLite

Ralph

Дикий столяр
ALTER TABLE и SQLite

Подскажите,где в синтаксисе ошибка,вроде же простейший запрос ? :(

alter table "a" add column "b" = ответ: syntax error near alter

(sqlite 2.8)
 

Ralph

Дикий столяр
Блин,причем здесь кавычки,прежде чем так категорично отвечать,"по любому" надо было вам прочесть это :

Цитата :

If you want to use a keyword as a name, you need to quote it. There are three ways of quoting keywords in SQLite:
'keyword' A keyword in single quotes is a string literal.
"keyword" A keyword in double-quotes is an identifier.
[keyword] A keyword enclosed in square brackets is an identifier. This is not standard SQL. This quoting mechanism is used by MS Access and SQL Server and is included in SQLite for compatibility.

Да и если дело было бы в кавычках,то syntax error был бы near table,а так-near alter... никак не пойму,чем sqlite не нравится ключевое слово table :(
 
Сверху