爱玺玺

爱玺玺的生活日记本。wx:lb87626

面试攻略

对方是打工的人事部员工攻略。

对方是经理攻略。

对方是老板攻略。

拍卖记录用户参与的拍卖历史表

mysql> create table mybidhis(

id int primary key auto_increment,

gid int not null,

myuid char(20) not null


计算机和心理学

计算机和心理学

计算机的商业话 心理学


理解distinct和group去重复的区别

distinct是真正的去掉重复

by group只是分组而已,数据任然在分组里面只是不显示,并没有真正的去掉重复。

mysql获取拍卖商品的参与竞拍者的人数 count(distinct(uid))

mysql> select count(distinct(uid)) from auction_nowprice_history where gid=26;

+----------------------+

| count(distinct(uid)) |

+----------------------+

|                  &n

css设置阴影效果 box-shadow:4px 4px 4px #e4e4e4

 box-shadow:4px 4px 4px #e4e4e4

前面3个4px分别是水平移动,垂直移动,阴影大小,后面是阴影颜色。

smarty时间戳格式化 老是记不住

{#($i.starttime+$i.keeptime)|date_format:"%Y-%m-%d  %H:%M:%S"#}

较复杂的sql语句记录

mysql> select (select max(nowprice) from auction_nowprice_history where gid=a.gid) nowmaxprice,(select max(price) from auction_price_history where gid=a.gid and uid=1603021316454064) youmaxprice,t.username,s.goodsname,s.id from auction_nowprice

Powered By Z-BlogPHP 1.4 Deeplue Build 150101

Copyright Your WebSite.Some Rights Reserved.

蜀ICP备11021721号-5