首页> 外国专利> Supporting dynamic tables in SQL query compilers

Supporting dynamic tables in SQL query compilers

机译:在SQL查询编译器中支持动态表

摘要

A framework for a query compiler and run-time environment for resolving a table reference to a dynamic table that is first identified at run-time but is initially unknown at compile-time. A parser parses the table reference and creates a parsed representation for the table that identifies the type of dynamic table. A code generator creates executable plans containing run-time table object representations (TAOB), from the parsed representations, that contain the type of dynamic table. The TAOB is also extended to provide for parameters that are definable at run-time, including a table ID of the actual table entity being referenced. A routine is embedded in a run-time routine that checks the type of dynamic table in the TAOB and dispatches control to one of a plurality of corresponding routines, depending upon the type of dynamic table. The corresponding routines use the extended TAOB to dynamically link the table reference to the dynamic table, depending upon the type of dynamic table. Once the dynamic table has been linked to the table reference, query processing continues as if that table were a base or derived table.
机译:用于查询编译器和运行时环境的框架,用于解析对动态表的表引用,该表在运行时首先被标识,但在编译时最初是未知的。解析器解析表引用,并为该表创建一个解析表示形式,以标识动态表的类型。代码生成器从解析的表示形式创建包含运行时表对象表示形式(TAOB)的可执行计划,该计划包含动态表的类型。 TAOB还进行了扩展,以提供在运行时可定义的参数,包括所引用的实际表实体的表ID。例程嵌入在运行时例程中,该例程检查TAOB中的动态表的类型,并根据动态表的类型将控制分派给多个相应例程之一。相应的例程使用扩展的TAOB将表引用动态链接到动态表,具体取决于动态表的类型。将动态表链接到表引用后,查询处理将继续进行,就好像该表是基础表还是派生表一样。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号