解决方案 »
- 各位大侠,小弟想请教下,怎么得到一个表的表结构
- oracle中与||功能相同的是哪个?十个选择题,但记不清选项,有谁知道答案呢?谢谢大家!!!
- 使用 create table xxx as 时,怎么转换 varchar2(10) 为 number(10)
- 菜鸟请指教 变量类型%rowtype
- 我是初学者,请教几个关于oracle9i数据类型的问题,请大家赐教。
- pb8+oracle9i的连接
- 在select中怎样限制输出的行数?
- oracle超级菜鸟问题!
- 数据库连接问题,求救在线等待,谢谢
- 一个奇怪但是简单的问题,目前有点困惑
- Oracle问题请教, Varchar2 最大长度
- crontab调用rman报错!!!!!!在线等待!!!!!急
Set a.lastyear_value = (select b.lastyearvalue
from bq_data_lastyear b
where a.corp_code = b.corp_code
and a.item_code = b.item_code and rownum=1)
Where exists (select 1
from bq_data_lastyear b
where a.corp_code = b.corp_code
and a.item_code = b.item_code)
select b.lastyearvalue
from bq_data_lastyear b
where a.corp_code = b.corp_code
and a.item_code = b.item_code可以是有聚合函数,比如max() min() ……
也可以像一楼一样