简体   繁体   中英

Keyword used in Select From SQL Statement (C# OleDbDataAdapter)

I am attempting to read the tables of a database into a dataset. I have a table named "CASE" which causes an error: "Syntax Error in From Clause". Upon further inspection, it would seem that "CASE" is an SQL/Access Keyword. Is there an "Escape Sequence" of sorts that would ignore this (ie The "\\" in C# strings, or will I have to rename the table?

I have attempted to surround the table name in parenthesis, which didn't work, as well as surrounding the table name in quotes, which threw another error.

Any help/suggestions are greatly appreciated.

是的,方括号[KeywordTableName]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM