Wrap the column name in brackets like so, from
becomes [from].
select [from] from table;
It is also possible to use the following (useful when querying multiple tables):
select table.[from] from table;
More Related Contents:
- Add a column with a default value to an existing table in SQL Server
- NULL values inside NOT IN clause
- What is the best way to paginate results in SQL Server
- SQL MAX of multiple columns?
- Table Naming Dilemma: Singular vs. Plural Names [closed]
- SQL Server Process Queue Race Condition
- Is the NOLOCK (Sql Server hint) bad practice?
- SQL Server 2005 Pivot on Unknown Number of Columns
- Creating table names that are reserved words/keywords in MS SQL Server [closed]
- Dynamic SQL – EXEC(@SQL) versus EXEC SP_EXECUTESQL(@SQL)
- Get all dates between two dates in SQL Server
- SQL – Subtracting a depleting value from rows
- Stored procedure or function expects parameter which is not supplied
- Pass table as parameter into sql server UDF
- SQL Server Convert Varchar to Datetime
- There are no primary or candidate keys in the referenced table that match the referencing column list in the foreign key
- OPTION (RECOMPILE) is Always Faster; Why?
- SQL server query to get the list of columns in a table along with Data types, NOT NULL, and PRIMARY KEY constraints
- Compare DATETIME and DATE ignoring time portion
- Fastest way to determine if record exists
- SQL – Query to get server’s IP address
- Remove numbers from string sql server
- What is the equivalent of ‘describe table’ in SQL Server?
- How to concatenate many rows with same id in sql?
- How do I edit a table in order to enable CASCADE DELETE?
- How to select date without time in SQL
- Generate nested nth level JSON SQL Server using recursive CTE
- Update query using Subquery in Sql Server
- “SELECT DISTINCT” ignores different cases
- T-SQL: checking for email format