⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 给你看看我的一个方法.txt

📁 一个新的采集工具 一个新的采集工具 一个新的采集工具
💻 TXT
字号:
作者:diego lynn
email: Hello.Diego@elong.com
日期:2001-6-29 15:32:06
    /**
     * <p>获取表列表的 sql 语句
     */
    private String getTableName( HttpPresentationComms inComms, String inTableResult ) throws HttpPresentationException
    {
        String _sql = I_EMPTY_STRING;
        String _tempString = I_EMPTY_STRING;

        String[] _relationship = inComms.request.getParameterValues( "relationship" );
        _sql = "select TABLENAME from (" + inTableResult + ") where SQLLEVEL = '0' ";

        for ( int i=0; i<_relationship.length-1; i++ )
        {
            if ( _relationship[i].equals("and") )
                _tempString = "intersect";
            else if ( _relationship[i].equals("or") )
                _tempString = "union";

            _sql += _tempString + " select TABLENAME from (" + inTableResult + ") where SQLLEVEL = '" +
                    (i+1) + "' ";
        }

        return _sql;
    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -