摘要
目前DB2数据库提供两种应用开发方式,以宝钢过程控制计算机系统的开发为例,详细介绍了其中之一——嵌入式SQL编程方式。从该编程方式所用到的宿主变量、指示符变量、游标以及错误的诊断和处理等多方面阐述了如何构建程序,并用构建的源代码探讨了在Linux系统下进行预编译、绑定以及编译和链接的基本过程,从而生成了可执行文件。经过多次开发和验证,在项目中实施性强、且效果良好。
Currently DB2 database application development offers two ways, in this paper, Case in development of BaoSteel Process Control Computer System, described in detail development way of embedded SQL programming. Are used programmatically from the host variables, indicator variables, cursors, and error diagnosis and treatment, and many showed how to build programs. In the linux system, these source codes are pre-compiled, bounded, and compiled and linked, at last generated the executable file. After several rounds of development and validation, the implementation of the project is strong, and good results.
出处
《信息技术与标准化》
2011年第12期54-57,67,共5页
Information Technology & Standardization