摘要:
1 buluo = $buluo;16 $thhis->height = $height;17 $this->weight = $weight;18 }19 //用于重载的方法20 public function cry(){21 echo '555 and I am from '.$this->buluo.'.'; 22 } 23 //用于继承的方法24 public function smile(){25 echo 'I am smiling.';26 }... 阅读全文
摘要:
地址:http://www.zixue.it/thread-7836-1-1.html相信很多用了mysql很久的人,对这两个字段属性的概念还不是很清楚,一般会有以下疑问:1、我字段类型是not null,为什么我可以插入空值2、为毛not null的效率比null高3、判断字段不为空的时候,到底要select * from table where column '' 还是要用 select * from table where column is not null 呢。带着上面几个疑问,我们来深入研究一下null 和 not null 到底有什么不一样。首先,我们要搞清楚“空 阅读全文