mysql随笔

1.建表,varchar   default ''

         int       default 0

2.模糊查询

'label like  "%aa%"',//如果字段label类型是字符串,要加引号

3.tp5,db::table()

  tp5以下,M(),D(),//D()会引用到 model下的文件,M()不会 

4.左连接

如果右边有不匹配会多出数据,为null

加条件, not ''

5.->count()

  count($a)//拿出来,再count容易崩

 
 
原文地址:https://www.cnblogs.com/mlls/p/6674035.html