04 2020 档案

摘要:public enum MidpointRounding Fields TABLE 1 AwayFromZero 1 When a number is halfway between two others, it is rounded toward the nearest number that i 阅读全文
posted @ 2020-04-30 11:15 向萧 阅读(299) 评论(0) 推荐(0) 编辑
摘要:1、核心逻辑(为了测试方便,路径直接写死了): public static void TemplateWrite<T>(List<T> datas, int startRow = 2, string targetPath = @"D:\导出excel测试.xlsx", string template 阅读全文
posted @ 2020-04-28 14:16 向萧 阅读(1886) 评论(0) 推荐(0) 编辑
摘要:ctrl+z #中断当前的安装显示 ps -ef | grep yum #查找当前yum相关的进程 kill -9 进程号(pid) #杀掉进程 阅读全文
posted @ 2020-04-27 16:17 向萧 阅读(3410) 评论(0) 推荐(0) 编辑
摘要:总结:1、查询时用 not in 效率极其低下,因此结合left join改为in查询,效率很快 原语句: select * from my_test_table where id not in (select b.id as id from ( SELECT MAX(a.`ModifyAt`)Mo 阅读全文
posted @ 2020-04-22 12:04 向萧 阅读(2620) 评论(0) 推荐(0) 编辑
摘要:在MySQL中,写SQL语句的时候 ,可能会遇到You can't specify target table '表名' for update in FROM clause这样的错误,它的意思是说,不能先select出同一表中的某些值,再update这个表(在同一语句中),即不能依据某字段值做判断再来 阅读全文
posted @ 2020-04-21 15:30 向萧 阅读(285) 评论(0) 推荐(0) 编辑
摘要:class Program { static void Main(string[] args) { Console.WriteLine("Hello World!"); Console.WriteLine(TestSwitch("0371")); Console.WriteLine(TestSwit 阅读全文
posted @ 2020-04-16 10:06 向萧 阅读(2872) 评论(2) 推荐(0) 编辑
摘要:异常信息:Result: 1273 - Unknown collation: 'utf8mb4_0900_ai_ci' 异常原因:导出SQL文本(或者同步数据库时)源数据库的版本和导入数据的目标数据库的版本不一致; 我的目标数据库是5.x的mysql,而源数据库mysql是8.x版本;本地的mysq 阅读全文
posted @ 2020-04-15 16:43 向萧 阅读(2223) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示