小白兔晒黑了吧 关注:5贴子:148
  • 3回复贴,共1
SQL_CALC_FOUND_ROWS
$count = $this->db->GetOne("SELECT FOUND_ROWS()");


IP属地:上海1楼2013-01-31 18:22回复
    |cutstr:40:'...' 截取


    IP属地:上海2楼2013-02-05 13:23
    回复
      insert into T_CARD(FCARDNO,FCARDPASS,FBATCHCODE)
      select c_CARDNO,c_CARDPASS,b.FBATCHCODE
      from t_CardBatch b
      把一个表的字段搬迁到另一个表(那个是b 是重名相同的字段)


      IP属地:上海3楼2013-04-11 18:04
      回复
        TRUNCATE member_jdtiao;
        INSERT member_jdtiao(id,uid,block,`point`,petName,title,`Y`,`M`,`D`,tmpl,`type`,dateline,lastupdate)
        SELECT id,userId,blockId,pointId,petName,topText,
        SUBSTR(`birthday`,1,4) Y,SUBSTR(`birthday`,6,2) M,SUBSTR(`birthday`,9,2) D,
        CONCAT('Process/petFace/',FROM_UNIXTIME(`createTime`,'%Y/%c/%e/'),`petFace`) tmpl,isUploadFile,
        createTime,lastupdate FROM processbar
        TRUNCATE member_sign;
        INSERT INTO member_sign(id,uid,dateline,`sign`) SELECT id,userId,createTime,signhtml FROM signhtml;


        IP属地:上海4楼2013-04-15 16:24
        回复