在Sql语句中看到
表名+变量名 的部分,
比如数据库中有表Table1
Table1 tableSample
这样的操作有什么用? tableSample是一个包含了Table所有内容的表吗?
表名+变量名 的部分,
比如数据库中有表Table1
Table1 tableSample
这样的操作有什么用? tableSample是一个包含了Table所有内容的表吗?
解决方案 »
- 代码提示已编译但有错误
- 这是为什么呢?
- 关于快速查询图形数据的Oracle数据库设计的请教
- oracle触发器的写法
- Oracle中 联合主键 作为 另一个表(联合)外键的问题,麻烦各位帮看看
- (附图)政府部门2节点数据库RAC报03:36:12.195 [ohasd(4964)]CRS-2765:资源 'ora.crf' 已失败
- !!oracle9i,MS SQL SERVER视频录像电子资料
- oracle中如何按日期查找记录
- 求助!!!!语句优化
- oracle中merge into查询越来越慢,大家知道什么原因吗,
- 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 是表的别名,多表联合查询时,相同列名需要在前面加表名(或别名)以示区别.
表名称比较长时,用短别名更方便.