实现方法: 可以用以下语句: select user_name,sql_text from v$open_cursor where sid in (select sid from (select sid,serial#,username,program from v$session where status='ACTIVE')) 子查询 select sid,serial#,username,program from v$session where status='ACTIVE' 查出的是不活动的session的sid。
可以用以下语句:
select user_name,sql_text
from v$open_cursor
where sid in (select sid from (select sid,serial#,username,program
from v$session
where status='ACTIVE'))
子查询
select sid,serial#,username,program
from v$session
where status='ACTIVE'
查出的是不活动的session的sid。
endif
最近发的帖子比较多嘛,我这里有一个.chm格式的Vfp 6的中文帮助文档,要不要?
private cexc_sha, cnewali, crd_onlycnewali=iif(newali,'alias '+dbf_ali,'')
cexc_sha=iif(exc_sha,'exclusive','shared')
crd_only=iif(rd_only,'NOUPDATE','')on error return .f.
use (dbf_ph_na) &cnewali &cexc_sha &crd_only
on errorreturn .t.
另还有一FAQ(.chm)!要不要?