What are valid table names in SQLite?

I haven’t found a reference for it, but table names that are valid without using brackets around them should be any alphanumeric combination that doesn’t start with a digit:

abc123 - valid
123abc - not valid
abc_123 - valid
_123abc - valid
abc-abc - not valid (looks like an expression)
abc.abc - not valid (looks like a database.table notation)

With brackets you should be able to use pretty much anything as a table name:

[This should-be a_valid.table+name!?]

Leave a Comment