摘要
GKD-Base数据库管理系统是自主开发并具有高安全级别的关系型数据库系统,讨论了该系统中嵌入式SQL的设计与实现技术。在C语言中嵌入SQL语句,就需要处理两种语言成分,即C语言成分与GKD-ESQL语句成分,通过对GKD-ESQL语句的预编译处理,识别其中的SQL语句,并将其转换成相应的C语言函数调用格式,并在ESQL运行库中实现这些函数,从而通过C编译器的处理,就可以将嵌入式SQL编译成可执行代码,并在GKD-Base数据库管理系统中执行。
The design and implementation technology ofthe embedded SQL in GKD-base is discussed. GKD-baseDBMS is developed under the cooperation of NUDT and other research institutes, and is of a very high security level. To enable SQL statements embedded in C language, the compiler needs to process two languages elements: C language elements and GKD-ESQL statement elements. The SQL statements are recognized first then are translated into corresponding C function calls by the pre-compiling step. The function calls are implemented as the ESQL runtime library. Then the intermediate C program is compiled, linked and executed under the GKD-base DBMS environment.
出处
《计算机工程与设计》
CSCD
北大核心
2006年第16期3088-3091,3095,共5页
Computer Engineering and Design