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();

  • 相关阅读:
    一个强大的json解析工具类
    android存储路径问题
    android界面的滑动切换功能
    mysql数据库
    【hadoop+spark】搭建spark过程
    【设计模式】行为型01策略模式(strategy patten)
    【java爬虫】网络爬虫思路
    maven_nexus私服搭建
    【需要重新维护】Redis笔记20170811视频
    【工具】java 文本文档txt写出记录工具
  • 原文地址:https://www.cnblogs.com/vip-deng-vip/p/7070501.html
Copyright © 2011-2022 走看看