- 博客(8)
- 收藏
- 关注
转载 mysql update
UPDATE table1INNER JOIN( select * from ( select * from table2) )a set table1.text = a.text ...
2018-12-27 18:59:00 104
转载 javascript复制对象值
因为object类型的变量赋值后,前者或后者修改了值时会相互影响所以需要用到变量值的复制 var a = {test: '123'}; var b = Object.assign({}, a); b.new_test = '123'; console.log(a, b); ...
2018-07-27 15:42:00 119
转载 MySql查看数据库大小
1.查看数据库大小 select round(sum(DATA_LENGTH/1024/1024),2) MB from information_schema.tables; 2.查看某个表大小 select round(sum(DATA_LENGTH/1024/1024), 2)...
2018-06-27 15:58:00 128
转载 PHP ZipArchive 创建文件注意项
1.压缩文件的文件名带中文时 iconv("UTF-8", "GB2312",'中文名.zip'); 2.调用open不会马上创建文件,要先往压缩包里添加文件 open第二位参数ZipArchive::CREATE addFile() 3.添加完文件后调用close才会在目录看...
2018-04-11 17:36:00 553
转载 PHP获取类所有方法
//取得当前语句所在类的类名 get_class(class name or class obj); //取得class name 类的所有的方法名,并且组成一个数组 get_class_methods(class name or class obj); //取得类的所有的变...
2017-08-30 10:02:00 2295
转载 order by 字符串类型的数字
num 1 12 2 如果字段值是字符类型排序时num asc排序会是 1 12 2 这并不是我想要的 如果想要 1 2 12 1. -num desc 2. --num asc ...
2017-02-17 09:59:00 1483
转载 Mysql 随机读取数据
SELECT * FROM tableorder byrand() limit 20; 转载于:https://my.oschina.net/u/2348615/blog/8377...
2017-02-13 18:04:00 76
转载 MySql BETWEEN 的两种用法
1.字段值存在于区域值之间 select * from table where filed_name(字段名) between val1(最小值) and val2(最大值) 2.值存在于字段值之间 select * from table where val(要包含的值) betw...
2017-02-09 14:20:00 749
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人