摘要:
update v5_user set is_invite = 1 where id in ( select temp.to_uid from ( select to_uid from v5_invite_user where 1 ) temp ) 阅读全文
摘要:
DELETE FROM v5_shops WHERE id NOT IN ( SELECT t.id FROM ( SELECT MIN(id) AS id FROM v5_shops GROUP BY `shop_no` ) t ) 阅读全文
摘要:
sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' 阅读全文
摘要:
UPDATE v5_shops SET shop_no = concat('A',id) 阅读全文
摘要:
select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from information_schema.TABLES where table_schema = '库名' 阅读全文
摘要:
Docker 常用命令 # 查看当前docker版本 docker -v docker --version # 查看都docker的系统信息 docker info # 搜索镜像 docker search 镜像 # 获取镜像 docker pull 镜像仓库地址 # 上传镜像 docker pus 阅读全文
摘要:
# 切换到合适的目录(这里使用的是桌面) cd ~/desktop # 克隆项目 git clone https://gitee.com/wonderful-code/buildadmin.git # 切换到项目目录 cd buildadmin # 设置Composer源和下载PHP依赖包,完整包不 阅读全文
摘要:
CREATE TABLE `student_info`( `id` INT(11) NOT NULL AUTO_INCREMENT, `student_id` INT NOT NULL, `name` VARCHAR(20) DEFAULT NULL, `course_id` INT NOT NUL 阅读全文
摘要:
参考文档:https://www.cnblogs.com/alliancehacker/p/12255445.html下载PHP安装包https://www.php.net/distributions/php-7.4.2.tar.bz2 #回到用户目录 cd ~ #下载php7.4源码 wget h 阅读全文
摘要:
MySQL 数据库备份单循环 #!/bin/bash DATE=$(date +%F_%H-%M-%S) HOST=localhost USER=backup PASS=123.com BACKUP_DIR=/data/db_backup DB_LIST=$(mysql -h$HOST -u$USE 阅读全文