sys(16,1)?

shellyang 2004-07-20 01:46:39
请解释一下什么意思?
...全文
129 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
shellyang 2004-07-20
  • 打赏
  • 举报
回复
a=sys(16,1)
?a
b=at(":",a)-1
?b
c=rat("\",a)-b
?c
d=substr(a,b,c)
?d
set default to substr(a,b,c)
winjet 2004-07-20
  • 打赏
  • 举报
回复
sys(16) - 正在执行的程序文件名

返回正在执行的程序文件名。

语法

SYS(16 [, nProgramLevel])

返回值类型

字符型

参数
nProgramLevel

指示从第几层嵌套中获取程序名。该值范围可以 1 变化到程序嵌套的层数。
如果 nProgramLevel 是 0 或 1,SYS(16) 返回主程序名(第一个执行的程序);如果省略了 nProgramlevel 参数,那么返回当前正在执行的程序名;如果 nProgramlevel 参数大于程序嵌套深度,则返回一个空串。

说明

如果要从错误中恢复过来,该函数很有用。SYS(16) 与 PROGRAM( ) 相似,然而,SYS(16) 返回带路径的程序名,而 PROGRAM( ) 只返回程序名。
如果正在执行一个过程或函数,SYS(16) 在过程或函数名之后返回包含该过程或函数的文件名。
当正在执行的程序是应用程序 (.APP) 的一部分,那么 SYS(16) 只返回程序名(路径不和程序名一起返回)。
river_sea 2004-07-20
  • 打赏
  • 举报
回复
没有用过,以下说明给你参考。

SYS(16) - Executing Program File Name

Returns the file name of the program being executed.

Syntax

SYS(16 [, nProgramLevel])

Returns

Character

Arguments

nProgramLevel

Indicates from how many levels back the program name is fetched. This value can range from 1 to the depth at which programs are nested.

If nProgramLevel is 0 or 1, SYS(16) returns the name of the main program (the program first executed). The name of the currently executing program is returned if nProgramLevel is omitted. The empty string is returned if nProgramLevel is greater than the program nesting depth.

Remarks

This option is useful for recovering from errors. SYS(16) is similar to PROGRAM( ). However, SYS(16) returns a path with the program name; whereas PROGRAM( ) returns just the program name.

If a procedure or function is being executed, SYS(16) returns the name of the file containing the procedure or function after the procedure or function name.

When the executing program is part of an application (.app), SYS(16) returns only the name of the program — the path isn't returned with the program name.
模拟生产实战,对一套19.4的rac集群进行数据库迁移。迁移到另外的一套19.4的数据库集群。生产实战,带领同学一步一步操作。该方法同样适用于迁移单实例数据库到集群环境。通过该课程,同学们可以学会如下知识点。1-如何无数据丢失的进行数据迁移。2-catalog start with 如何使用3-restore database 在rman和sql命令行区别是什么4-recover database [using backup controlfile until cancel ]何时在rman使用,何时在sql命令行使用。5-进行数据恢复的时候,源库新产生的归档如何进行数据恢复。本节课会为同学们解惑一课程主题模拟生产实战,对一套19.4的rac集群进行数据库迁移。迁移到另外的一套19.4的数据库集群。 二课程特色 生产实战,带领同学一步一步操作。该方法同样适用于迁移单实例数据库到集群环境。  三课程内容 1-备份源数据库2-在目标库对备份集进行restore操作3-recover-通过rman进行recover(如何通过catalog start with 进行操作)这个时候的recover是recover哪里的归档?4-recover-通过sql命令行对源库新产生的归档进行recover5-注册数据库到集群等操作.修改remote_listener,修改密码文件,添加数据库到集群软件等操作。6-迁移验证sys用户是否可以登陆,普通用户是否可以登陆?sys用户登陆和普通用户登陆区别是什么?

2,722

社区成员

发帖
与我相关
我的任务
社区描述
VFP,是Microsoft公司推出的数据库开发软件,用它来开发数据库,既简单又方便。
社区管理员
  • VFP社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧