返回首页

gbase数据、南大通用产品文档:GBase8sstcopy() 函数

更新日期:2024年09月11日

stcopy() 函数将以空终止的字符串从内存中一个位置复制至另一位置。

语法

void stcopy(from, to)
char *from, *to;
from
指向您想要 stcopy() 复制的以空终止的字符串的指针。
to
指向内存中 stcopy() 复制字符串的位置的指针。

示例

此样例程序在 demo 目录中的 stcopy.ec 文件中。
/*
* stcopy.ec *

This program displays the result of copying a string using stcopy().
*/

#include

main()
{
static char string[] = "abcdefghijklmnopqrstuvwxyz";

printf("STCOPY Sample ESQL Program running.\n\n");

printf("Initial string:\n [%s]\n", string);
/* display dest */
stcopy("John Doe", &string[15]); /* copy */

GBase 8s ESQL/C 编程指南
南大通用数据技术股份有限公司
- 957 -

printf("After copy of 'John Doe' to position 15:\n [%s]\n",
string);

printf("\nSTCOPY Sample Program over.\n\n");
}
输出

STCOPY Sample ESQL Program running.

Initial string:
[abcdefghijklmnopqrstuvwxyz]
After copy of 'John Doe' to position 15:
[abcdefghijklmnoJohn Doe]

STCOPY Sample Program over.

使用智能大对象读取函数将捕获的数据传输到应用程序可以访问的缓冲区。
您可以使用下表中列出的任何智能大对象读取函数,具体取决于您的应用
程序语言。在特定会话期间,必须对所有读取调用使用相同的智能大对象读取
函数。在同一会话中使用不同的函数可能会导致捕获数据的不完整传递。
表1-1.智能大对象读取函数
函数
参数
GBase 8s API
应用程序语言
mi_lo_read()
A pointer to a connection
descriptor
A smart large object file
descriptor
A data buffer The
maximum
number of bytes to read
DataBlade API
Use in a C language
application.
ifx_lo_read()
A smart large object file
descriptor
A data buffer
ODBC
Use in an ODBC application.
ifx_lo_read()
A smart large object file
descriptor
A data buffer The
maximum
number of bytes to read
A pointer to an error code
ESQL/C
Use in a C language
application.
IfxLoRead()
A smart large object file
descriptor
A data buffer The
maximum
number of bytes to read
JDBC
Use in a Java application.

GBase 8s数据库安装手册
南大通用数据技术股份有限公司
5
IfxBlob.Read()
A data buffer
.NET
Use in a .NET application.

访问控制导航是GBase 安全管理器的管理组件,它提供了五个与安全配置有关的视图。

GBase 8s 安全管理器用户手册


南大通用数据技术股份有限公司 - 9 -

图:访问控制导航
3 GBase 安全管理器安全配置
GBase 安全管理器“访问控制导航”提供了五个与安全配置有关的视图。通过这些视图可
以对指定Server 进行强制访问控制进行配置。
以下是GBase 安全管理器提供的五大功能:

范畴管理

标签管理

主体管理

客体管理

用户管理