ChinaUnix.net
相关文章推荐:

sql declare table

我想在procedure里头用global temporary table,db2的sql reference告诉我 只要有 user temporary tablespace的使用权限就可以了 因此,我create user temporary tablespace usertemp .....并且也grant use of tablespace usertemp to public,好像ok了。 (grant use of tablespace usertemp to user tt 也做过) 我用db2的clp,connect to sample user tt using tt (tt是普通linux os用户) 在db2的命令行上,我可以declare...

by ttdb - DB2 - 2003-04-11 11:13:51 阅读(4183) 回复(6)

相关讨论

[code]#include #include #include EXEC sql INCLUDE sqlda; EXEC sql INCLUDE sqlcpr; EXEC sql INCLUDE sqlca; /*RELEASE_CURSOR=YES 使PROC 在执行完后释放与嵌入sql有关资源*/ EXEC ORACLE OPTION (RELEASE_CURSOR = YES); EXEC sql BEGIN declare SECTION; char connstr[20]; EXEC sql END declare SECTION; /*错误处理函数*/ void sql_error(char *msg) { printf("\n%s,%ld,%s\n", ...

by zhongyj - Oracle - 2008-02-28 09:26:38 阅读(9363) 回复(2)

Hi, Would you give me a hint how to do this in Java. Now I have an interface of an application, I am not allowed to change the application, which means I do not have the source code of the application. There is a text field, which can take in a list of attributes, the the attributes are to be inserted to a remote sql server, do you have any idea how to insert varibles into the table on a sql s...

by yt20042003 - Java - 2004-11-11 11:42:39 阅读(950) 回复(0)
by bocean - PostgreSQL - 2003-06-27 21:11:30 阅读(2312) 回复(1)

当我把“EXEC sql begin declare section”部分放在“.ec”文件内时, esql可以正常编译; 但是当放在“.h”头文件内时, esql编译不通过!提示如下: error 1000: Unexpected symbol: "sql". error 1000: Unexpected symbol: "SECTION". error 1000: Unexpected symbol: "sql". error 1000: Unexpected symbol: "SECTION". 请问哪位高手知道是怎么回事? [ 本帖最后由 lhyonly 于 2006-7-4 18:51 编辑 ]

by lhyonly - C/C++ - 2006-07-05 22:12:09 阅读(3870) 回复(5)

PRO*C中,EXEC sql declare游标会返回sqlcode吗? 我现在经常遇到declare cursor的时候报告ORA-01001.invalid cursor. 在我印象中declare从来不抱错啊,不管是oracle还是informix. 请教一下各位!

by sync - Oracle - 2004-06-27 21:18:53 阅读(3231) 回复(2)

我在游标的声明前写了其它的sql,例如 select into 语句 编译总是不能通过,保错如下: DB2ADMIN.HBTEST: 26: [IBM][CLI Driver][DB2/NT] sql0104N 在 "" 之后发现意外的记号 ";"。期望的记号可能包括:"<sql statement>;"。 LINE NUMBER=26. sqlSTATE=42601

by greathb - DB2 - 2003-04-09 22:46:30 阅读(1710) 回复(6)

I wish to know how to select data from db without locking the table. In MSsql, we used select * from table (with nolock) so how about DB2? Please advise.

by toms1981 - DB2 - 2005-04-11 09:34:44 阅读(2323) 回复(11)

创建表的语法是: CREATE [TEMP] table table-name ( column-name { datatype | {BYTE|TEXT} [IN {table | BLOBspace-name]}] } [DEFAULT default_opts] [,...] [column-constraint-definition][,...] [NOT NULL] [UNIQUE [CONSTRAINT constr-name]][,...] [UNIQUE (unique-column-list) [CONSTRAI...

by playboy - Informix - 2003-03-14 15:36:13 阅读(2469) 回复(3)

删除一个有默认值的字段用 alter table [表名] drop column [字段名] 不让删 说有一个函数对象在访问它。 后想先用 alter table [表名] alter column [字段名] drop default "defualt" 出报错。 :em14:

by qiubo - Sybase - 2005-09-21 11:02:17 阅读(1411) 回复(4)

以前,DDS创建的PF的journal,都是用dspjrn ,output到文件, 然后写RPG,move到Record format,然后查看。 现在,sql创建的表的问题,怎么解决呢? 另外,由于JDBC/ODBC连接的用户是同一用户,所以journal查看到的都是 同一用户,怎么办?

by huim - AS400 - 2005-01-26 18:30:01 阅读(1333) 回复(3)