zoukankan      html  css  js  c++  java
  • 邓_tp_笔记

    <?php
    namespace app eachercontroller;
    use thinkDb;
    use appcommonmodelClasscourse;
    use appcommonmodelRwtype;
    use appcommonmodelScore as Score_Model;
    use appcommonmodelRwgl as modelRwgl;
    use appcommonmodelClasscoursestudent as CcsModel;

    use thinkRequest;
    class Score extends Base{

    $cnt=Score_Model::where('rwglid',$this->rwglid)->count();

    $mysql = Db::table('classcoursestudent')
                            ->where('classcourseid',$id)
                            ->where('no',$myno)
                            ->update($score);

    $arr = DB::name('rwgl')
                    ->where('classcourseid',$classcourseid)
                    ->where('rwtypeid',$rwtypeid)
                    //->select();
                    ->column("concat(date,'<br>',name) as name","id");

    $list = Db::name('Classcoursestudent a')
                    ->join('Student b','a.no=b.no' )    ————关联数组
                    ->where('a.classcourseid',$courseid)
                    ->where('a.delete_time','null')
                    ->where('b.delete_time','null')
                    ->select();

    $list=Db::table('classcoursestudent')
                    ->alias('ccs')      ———————————————————别名
                    ->field('no,name,groupno,null as score,null as id')  ————————字段名
                    ->where('classcourseid',$this->classcourseid)
                    ->select();

  • 相关阅读:
    盘的转——使用缓动函数完成动画
    espnet环境配置(window)
    2021.9.8 Hadoop集群
    2021.9.7 开学第一课
    RS-422与RS-485
    70 进程创建的优化设计 下
    RGB液晶接口
    matlab2018a安装激活教程
    sed初级教程
    centos无法添加默认网关
  • 原文地址:https://www.cnblogs.com/vip-deng-vip/p/7070501.html
Copyright © 2011-2022 走看看