Search code examples
sqlitesqlitestudio

default string value


I want to set default value for a varchar column in sqlite.

default value is a path like c:\log

but sqliteStudio don't allow me to add this and after C value rest of values are in purple:

c:\log

how should I add this?


Solution

  • In SQL, string values must be quoted:

    'c:\log'