我有一个选择查询,我想在视图和另一个表上进行连接.视图工作正常,表格也是如此.但当我尝试做类似的事情:
select VIEW.col1, VIEW.col2
from VIEW, TABLE
where VIEW.col1 = TABLE.col1
Run Code Online (Sandbox Code Playgroud)
我明白了 The multi-part identifier "VIEW.col1" could not be bound.
语法是错误的,还是仅允许在视图上?
Vyt*_*lyi 10
这应该工作
select v.col1, t.col2
from VIEW v, TABLE t
where v.col1 = t.col1
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
63614 次 |
| 最近记录: |