加入收藏
设为首页
关于我们
您现在的位置: 101美术高考网 >> 论文中心 >> 理学 >> 地理地质 >> 文章正文
  全国工程地质专家库系统的开发         ★★★★
全国工程地质专家库系统的开发
作者:101ms.com 文章来源:中国论文下载中心 点击数: 更新时间:2007-4-10 15:42:24

; strkeys = Mid(strkeys, 1, Len(strkeys) - 1)

    'where子句查询条件

    strWhere = vbNullString

    If Len(Trim(strQuerySQL)) > 0 Then

        strWhere = " where " & Trim(strQuerySQL)

    Else

        strWhere = vbNullString

    End If

    '字段排序字句

    If lstOrderKey.ListCount > 0 Then

        mstrOrderSQLs = ""

        intLenKey = 0

        For j = 0 To lstOrderKey.ListCount - 1

            strOrderSQL = lstOrderKey.List(j)

            If optOrder(0).Value = True Then

                intLenKey = InStr(1, strOrderSQL, "(升序)", vbTextCompare)

                strOrder = " ASC"

            Else

                intLenKey = InStr(1, strOrderSQL, "(降序)", vbTextCompare)

                strOrder = " DESC"

            End If

            If intLenKey > 0 Then

                strOrderSQL = Mid(strOrderSQL, 1, intLenKey - 1)

                If mstrOrderSQLs <> "" Then

                    mstrOrderSQLs = mstrOrderSQLs & ","

                End If

                mstrOrderSQLs = mstrOrderSQLs & strOrderSQL & strOrder

            End If

        Next j

        mstrOrderSQLs = " order by " & mstrOrderSQLs

    Else

        mstrOrderSQLs = ""

    End If

    '字符串连接生成SQL查询语句

    strSQL = "select " & strKey & " from " & " 专家库 " & strWhere & mstrOrderSQLs

上一页  [1] [2] [3] [4] 下一页


文章录入:admin    责任编辑:admin 
  • 上一篇文章:

  • 下一篇文章:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    专 题 栏 目
    最 新 热 门
    最 新 推 荐
    相 关 文 章
    没有相关文章
    | 设为首页 | 加入收藏 | 联系站长 | 友情链接 | 版权申明 | 网站公告 |
    Copyright © 2006 All Rights Reserved 中国美术高考网(国内最专业的美术高考门户网) 版权所有 未经允许 不得转载!
    网站咨询/管理员:101msw#163.com, 网站编辑/作品投稿/简章发布:101msw#163.com
    为防止垃圾邮件,请将"#"改为"@",编辑QQ:362058177 联系电话:13705952125