在Sql语句中看到
表名+变量名 的部分,
比如数据库中有表Table1
Table1 tableSample
这样的操作有什么用? tableSample是一个包含了Table所有内容的表吗?
表名+变量名 的部分,
比如数据库中有表Table1
Table1 tableSample
这样的操作有什么用? tableSample是一个包含了Table所有内容的表吗?
解决方案 »
- oracle管理问题
- 请问ORACLE10.2.0.1.0升级到10.2.0.5.0,需要REDHAT AS几?
- 各位,请教一个比较精辟的问题,不常见
- oracle分割问题
- 连接数据库超时问题
- 在windows 2000 server 安装Oracle9i 企业版,但每次连接速度很慢,不知为什么?(我的机器配置很高)
- oracle数据库速度慢,而CPU占用率只有2%
- oracle management server 问题???
- 各位大侠有没有制作ODBC安装盘的工具,现在安装软件要每次配置ODBC不是很方便
- job调用包的执行怎么设置早上执行一次晚上执行一次
- Oracle怎么创建用户可以让PLSQL登陆管理数据
- oracle创建实例之后是否会自动创建相应的em
你只这样写,看不出来啊。
如:select a.a,b.a from a,b where a.a=b.a
select tableSample.status_time as time,
tableSample.time - 1 / 24 / 60 * 5 * t.delay as Upstream_Time,
t.delay,
t.ID,
t.weight
from Table2 t,
TABLE1 tableSample where t.index = : Index
and t.cycle = : Cycle
tableSample.time - 1 / 24 / 60 * 5 * t.delay as Upstream_Time,
t.delay,
t.ID,
t.weight
from Table2 t,
TABLE1 tableSample where t.index = : Index --表的别名
and t.cycle = : Cycle
tableSample.time - 1 / 24 / 60 * 5 * t.delay as Upstream_Time,
t.delay,
t.ID,
t.weight
from Table2 t,
TABLE1 tableSample where t.index = : Index
and t.cycle = : Cycle
tableSample 是表的别名,多表联合查询时,相同列名需要在前面加表名(或别名)以示区别.
表名称比较长时,用短别名更方便.