微信公众号 小红书 抖音 B站
小黑屋 渝ICP备2023015870号-1
公安备案号:88888888号
生成式人工智能服务管理暂行办法
备案号:88888888-20240226

Query, yii\db\Query

699
0
0
0
月幽璃 LV2
正文
发布时间:2020-11-21

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
  The columns to be selected.Columns can be specified in either a string (e.g. "id, name") or an array (e.g. ['id', 'name']).Columns can be prefixed with table names (e.g. "user.id") and/or contain column aliases (e.g. "user.id AS user_id").The method will automatically quote the column names unless a column contains some parenthesis(which means the column contains a DB expression). A DB expression may also be passed in form ofan yii\db\ExpressionInterface object.
  Note that if you are selecting an expression like CONCAT(first_name, ' ', last_name), you shoulduse an array to specify the columns. Otherwise, the expression may be incorrectly split into several parts.
  When the columns are specified as an array, you may also use array keys as the column aliases (if a columndoes not need alias, do not use a string key).
  Starting from version 2.0.1, you may also select sub-queries as columns by specifying each such columnas a Query instance representing the sub-query.


回复

使用道具

 
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

快速回复
  • 834544123 在线客服

  • 周一至周五:9:00-21:00

    周末及节日:9:00-18:00

  • QQ&微信:
    834544123
    QQ群:
    16538234
返回列表