- 1、本文档共6页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
吉大16秋学期数据库应用技术》在线作业一
奥鹏17春吉大16秋学期《数据库应用技术》在线作业一
一、单选题(共 25 道试题,共 100 分。)
1. 对于UNIX和Intel平台上的数据库应用,如果需要存取OS/400、VM/VSE和OS/390系统上的数据库,需要DB2哪种产品的支持?
A. DB2 Connect
B. DB2 DataPropagator
C. DB2 Net.Data
D. DB2 DataJoiner
E. DB2 Relational Connect
正确答案:
2. A cursor is declared with the WITH HOLD option. Which of the following statements is always true?
A. The cursor will remain open after a COMMIT.
B. All rows retrieved are locked until a COMMIT.
C. A COMMIT will not be allowed until the cursor is closed.
D. Locks obtained by the cursor will be kept after a COMMIT.
正确答案:
3. 发人员开发访问后台AIX上的DB2的windows程序,需要在windows开发平台上安装:
A. DB2运行时间客户端
B. DB2管理客户端
C. DB2应用程序开发客户端
D. DB2瘦客户端
正确答案:
4. Given the following table: TestTable C1 ----------- 12345 And if the following CLI calls are made: SQLAllocHandle(SQL_HANDLE_ENV,SQL_NULL_HANDLE,henv); SQLSetEnvAttr( henv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER) SQL_OV_ODBC3,0); SQL AllocHandle(SQL_HANDLE_DBC,henv,hdbc); SQLConnect( hdbc, (SQLCHAR *)db, SQL_NTS, (SQLCHAR *)userid, SQL_NTS, (SQLCHAR *)password, SQL_NTS ); SQLSetConnectAttr( hdbc, SQL_ATTR_AUTOCOMMIT, SQL_AUTOCOMMIT_OFF, 0); SQLAllocHandle(SQL_HANDLE_STMT,hdbc,hstmt); SQLPrepare(hstmt,(unsigned char*)select *from Test order by C1,SQL_NTS); SQLBindCol(hstmt,1,SQL_C_SHORT,data,0,NULL); SQLExecute(hstmt); SQLFetch(hstmt); printf(Data:%i\n,data); SQLFetch(hstmt); printf(Data:%i\n,data); SQLFetch(hstmt); printf(Data:%i\n,data); SQLEndTran(SQL_HANDLE_ENV,henv,SQL_COMMIT); SQLFetch(hstmt); printf(Data:%i\n,data); Which of the following will be returned by the program?
A. Data: 1 Data: 2 Data: 3 Data: 3
B. Data: 1 Data: 2 Data: 3 Data: 4
C. Data: 1 Data: 2 Data: 3 Data: 1
D. Data: 1 Data: 2 Data: 3 Data: 5
正确答案:
5. The following commands are issued against a data source: CREATE TABLE userid.org ( i INT) CREATE ALIAS user1.org FOR userid.org CREATE TABLE org.sample ( c CHAR(1)) CREATE ALIAS sample.org FOR userid.org CREATE ALIAS userid.sample FOR sample.org When issued by USER1, which of the following stat
文档评论(0)