摘要: create table 表 as select * frm 表 where 1=0 不要数据 create table 表 as select * from 表 where 1=1 要数据 阅读全文
posted @ 2022-08-05 13:47 CC小骨 阅读(439) 评论(0) 推荐(0) 编辑
摘要: SELECT * FROM table where create_datetime >= now()-interval 2 day 阅读全文
posted @ 2021-03-05 12:30 CC小骨 阅读(308) 评论(0) 推荐(0) 编辑
摘要: select * into 表名 from (select * from 表名) as tb1 阅读全文
posted @ 2021-02-02 11:23 CC小骨 阅读(331) 评论(0) 推荐(0) 编辑
摘要: GO/****** Object: StoredProcedure [dbo].[UspOutputData] Script Date: 2021/1/28 23:54:06 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGO ALTER PRO 阅读全文
posted @ 2021-02-02 11:22 CC小骨 阅读(68) 评论(0) 推荐(0) 编辑
摘要: ///// <summary> ///// Http方式下载文件 ///// </summary> ///// <param name="url">http地址</param> ///// <param name="localfile">本地文件</param> ///// <returns></r 阅读全文
posted @ 2020-12-23 17:06 CC小骨 阅读(865) 评论(0) 推荐(0) 编辑
摘要: 修改home 文件夹以及下面的所有文件的所属用户为 web sudo chown -R web home 修改home 文件夹以及下面的所有文件的所属用户组为 web sudo chgrp -R web home 阅读全文
posted @ 2020-11-11 11:37 CC小骨 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 输入命令 ps aux | grep redis-server 阅读全文
posted @ 2020-09-03 11:26 CC小骨 阅读(6128) 评论(0) 推荐(0) 编辑
摘要: 首先看一下nginx的目录 ps -ef | grep nginx 查看nginx配置文件是否正确 找到master地下的sbin目录输入命令 ./nginx -t 重启进入sbin下面输入 ./nginx -s reload 阅读全文
posted @ 2020-09-03 11:25 CC小骨 阅读(559) 评论(0) 推荐(0) 编辑
摘要: using System;using Microsoft.Extensions.Caching.Memory; static readonly MemoryCache Cache = new MemoryCache(new MemoryCacheOptions()); /// <summary> / 阅读全文
posted @ 2019-06-12 15:24 CC小骨 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 首先切换项目所在的盘符 例如 E:回车 切换到E盘 然后找到项目API所在的路径 ,不包含api下的控制器 然后输入cd 路径 切换到盘符以后在输入 dotnet run 就可以运行api 阅读全文
posted @ 2019-06-11 21:21 CC小骨 阅读(281) 评论(0) 推荐(0) 编辑