zoukankan      html  css  js  c++  java
  • 如何生成查询语句?

    查询语句的组成部份
    返回的字段
    排序
    分组

    返回的字段--->可能是具体表的字段,也可能是一个sql函数,也可能是一个子查询
    排序的字段--->可能是具体表的字段,也可能是一个sql函数.
    分组的字段--->具体表的字段

    所以对于返回的字段和排序的字段都有一个共性.可能提一个公共的接口出来.


        ''' -----------------------------------------------------------------------------
        ''' Project  : Lily.PersistenceLayer1.1
        ''' Interface  : Entity.IField
        '''
        ''' -----------------------------------------------------------------------------
        ''' <summary>
        ''' 获取字段的接口
        ''' </summary>
        ''' <remarks>
        ''' </remarks>
        ''' <history>
        '''  [zqonline] 2006-06-08 Created
        ''' </history>
        ''' -----------------------------------------------------------------------------
        Public Interface IField
            ''' -----------------------------------------------------------------------------
            ''' <summary>
            ''' 获取字段字符串
            ''' </summary>
            ''' <returns></returns>
            ''' <remarks>
            ''' </remarks>
            ''' <history>
            '''  [zqonline] 2006-06-08 Created
            ''' </history>
            ''' -----------------------------------------------------------------------------
            Function ToField(ByVal DataBaseType As DBAccessLayer.DataBaseTypeEnum) As String
        End Interface
  • 相关阅读:
    查看Oracle的redo日志切换频率
    MySQL 5.6 my.cnf 参数说明(转)
    MySQL性能优化之参数配置
    centos7安装mysql(MariaDB)
    centos6.5安装sendmail
    zabbix安装配置
    linux设置安全连接设置(私钥)
    linux本机root账户无法登录,但是远程ssh可登录
    ORACLE AWR
    maven 依赖(依赖范围,聚合,继承等)
  • 原文地址:https://www.cnblogs.com/zqonline/p/420210.html
Copyright © 2011-2022 走看看