invalid table alias
2016-06-01 14:44
169 查看
If an alias is assigned to a table, all explicit references to the table in the Transact-SQL statement must use the alias, not the table name. For example, the following SELECT generates a syntax error because it uses the name of the table when an alias has
been assigned:
If an alias is assigned to a table, all explicit references to the table in the Transact-SQL statement must use the alias, not the table name. For example, the following SELECT generates a syntax error because it uses the name of the table when an alias has
been assigned:
就是说如果将表命名了别名,整个程序都要使用该别名。
been assigned:
SELECT Sales.Customer.CustomerID, /* Illegal reference to Sales.Customer. */ s.Name FROM Sales.Customer AS c JOIN Sales.Store AS s ON c.CustomerID = s.BusinessEntityID ;
If an alias is assigned to a table, all explicit references to the table in the Transact-SQL statement must use the alias, not the table name. For example, the following SELECT generates a syntax error because it uses the name of the table when an alias has
been assigned:
就是说如果将表命名了别名,整个程序都要使用该别名。
相关文章推荐
- Android之界面刷新 View更新 Invalidate和postInvalidate的区别
- PHP基础笔记(01)
- 分析iOS Crash文件
- 静态库的合并
- 使用React-route和Webpack快速构建一个react程序
- AS400 *CAT/*BCAT/*TCAT
- 【DEBUG】OMAPL138 Connect to PRSC failed
- Word Ladder II
- 【转】not found while looking for property错误
- 204 Count Primes
- Linux命令启动关闭tomcat部署的项目
- 经典数据结构与算法(二):平衡查找树之2-3树
- HDU 欧拉回路
- 常用Eclipse快捷方式(推荐)
- [置顶] 狗日的 JavaScript 闭包
- oracle函数-->tunce
- 简单的swing对话框
- 为所有雇员增加工资,工资在 1000 以内的增加 30%,工资在 1000~2000之间的增加 20%, 2000 以上的增加 10%。
- 读取任意行数据
- Android Reader -- 一个简单的网络通信APP