返回首页

gbase数据、南大通用产品文档:GBase8sSQLColumns(仅限一级)

更新日期:2024年09月11日


GBase 8s ODBC Driver 程序员指南
南大通用数据技术股份有限公司
- 215 -

SQLColumns 返回指定表的列名。驱动程序将此信息作为指定 hstmt 上的结果集返回。
下表描述了SQLColumns 的 SQLSTATE 和错误消息。
SQLSTATE
错误值
错误消息
01000
-11001
General warning
08S01
-11020
Communication-link failure
24000
-11031
Invalid cursor state
S1000
-11060
General error
S1001
-11061
Memory-allocation failure
S1008
-11065
Operation canceled
S1010
-11067
Function-sequence error
S1090
-11071
Invalid string or buffer length
S1C00
-11092
Driver not capable
S1T00
-11094
Time-out expired
S1C00
-11300
SQL_DEFAULT_PARAM not supported
08S01
-11301
A protocol error has been detected. Current connection is
closed.
S1000
-11310
Create and Drop must be executed within a ServerOnly
Connection
S1000
-11320
Syntax error
S1000
-11323
The statement contained an escape clause not supported by
this database driver

语法格式
ALTER TABLE table_name SET TBLPROPERTIES('comment' = new_comment);
示例
示例1:修改表备注说明
gbase> ALTER TABLE t_hive SET TBLPROPERTIES ('comment' = 'hive_info');
Query OK, 0 rows affected

在编写PL/SQL 过程中,会定义一些变量,给变量赋值,调用其他存储过程等。介绍
PL/SQL 中的基本语句,包括定义变量、赋值语句、调用语句以及返回语句。
说明

GBase 8c V5 开发者手册
南大通用数据技术股份有限公司
631
尽量不要在存储过程中调用包含密码的SQL 语句,因为存储在数据库中的存储过程文
本可能被其他有权限的用户看到导致密码信息被泄漏。
如果存储过程中包含其他敏感信息也
需要配置存储过程的访问权限,保证敏感信息不会泄漏。