本文介绍了如何在vb.net中检查查询语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,
我在VB.NET 2010中开发了一个查询生成器项目,因为我需要检查输入查询的语法,即,系统应在执行查询之前检查其语法.请任何人给我关于这个想法.

问候,
Sathish

Dear All,
I developing one query Builder project in VB.NET 2010, in that I need to check the input Query''s syntax, ie., the system should check its syntax before the Query has been executed. Please anyone give me the idea about it.

Regards,
Sathish

推荐答案


create or replace PROCEDURE DBP_QUERY_RESULT
       (

          O_QUERY               IN   CLOB,
          O_QRY_RES             OUT  DBK_REPORTS.record_type,
          O_MESSAGE             OUT  VARCHAR2
      )IS

V_QUERY            CLOB;
BEGIN
V_QUERY := O_QUERY;


      BEGIN
           OPEN O_QRY_RES FOR TO_CHAR(V_QUERY);

        EXCEPTION
          WHEN NO_DATA_FOUND THEN
            O_MESSAGE := ''NO RECORDS FOUND'';
          WHEN OTHERS THEN
            O_MESSAGE    := sqlcode || sqlerrm;

       END;


END DBP_QUERY_RESULT;



这篇关于如何在vb.net中检查查询语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-19 02:03