T
Tomas Eklund
Using: Access 2003, ASP and JET SQL
Hello!
I trying to create a table using SQL (which will be executed from an
ASP-page) which needs to have some VARCHAR columns that defaults to empty
strings. But I have serious issues with the syntax of the DEFAULT
statement as it doesn't allow for strings to be enclosed in quotes.
Example:
CREATE TABLE Users
(
Name VARCHAR(20) DEFAULT Unknown
)
From the MSDN article Intermediate Microsoft Jet SQL for Access 2000:
"Notice that the default value is not enclosed in single quotes. If it
were, the quotes would also be inserted into the record."
If I cannot use quotes, then how do I specify an empty string?
Best regards
Tomas Eklund
Hello!
I trying to create a table using SQL (which will be executed from an
ASP-page) which needs to have some VARCHAR columns that defaults to empty
strings. But I have serious issues with the syntax of the DEFAULT
statement as it doesn't allow for strings to be enclosed in quotes.
Example:
CREATE TABLE Users
(
Name VARCHAR(20) DEFAULT Unknown
)
From the MSDN article Intermediate Microsoft Jet SQL for Access 2000:
"Notice that the default value is not enclosed in single quotes. If it
were, the quotes would also be inserted into the record."
If I cannot use quotes, then how do I specify an empty string?
Best regards
Tomas Eklund