导航

摘要: 一个同事问了一个问题 如下:select sum(price*num) from T1 where id=100select sum(amount) from T2where id=100 现在想把同一id的相减 一个是 应收 第二个是已收 求的是应收减已收 你能在不建数据表的情况下用一条语句给出答案吗? 阅读全文

posted @ 2010-06-10 17:11 DotNet1010 阅读(338) 评论(1) 推荐(0) 编辑

摘要: .NET Framework 2.0 版中新增的 TransactionScope 单独使用确实很方便。但是在实际项目中都有自己的访问层。如何才能让它和自己的访问层结合起来简单而又不失其功能呢?下面是作者想到的实现方案:[在访问相同数据库时避免讨厌的分布式事务] 阅读全文

posted @ 2007-08-22 20:20 DotNet1010 阅读(3601) 评论(13) 推荐(0) 编辑

2021年11月3日

摘要: https://blog.csdn.net/sD7O95O/article/details/120135032 Docker Image Size - How to Keep It Small? https://phoenixnap.com/kb/docker-image-size#:~:text= 阅读全文

posted @ 2021-11-03 13:37 DotNet1010 阅读(271) 评论(0) 推荐(0) 编辑

2021年6月4日

摘要: Linux 系统方法: LD_LIBRARY_PATH=. ./userdemo | iconv -f GB2312 -t utf8 Shell 方法 Shell 编码 改成GB2312 // 编码转换 //https://www.cnblogs.com/Ivanhan2019/p/11633247 阅读全文

posted @ 2021-06-04 17:36 DotNet1010 阅读(115) 评论(0) 推荐(0) 编辑

2021年5月31日

摘要: https://blog.csdn.net/wowotuo/article/details/90454013 代码示例: https://tashaxing.blog.csdn.net/article/details/70195889?utm_medium=distribute.pc_relevan 阅读全文

posted @ 2021-05-31 11:06 DotNet1010 阅读(95) 评论(0) 推荐(0) 编辑

2021年2月14日

摘要: app.UseSwagger(c => { c.PreSerializeFilters.Add((swagger, httpReq) => { string swagger_index_url = httpReq.Headers["Referer"]; var index = swagger_ind 阅读全文

posted @ 2021-02-14 10:42 DotNet1010 阅读(261) 评论(0) 推荐(0) 编辑

2021年2月10日

摘要: #[cfg(debug_assertions)] macro_rules! debug { () => (std::println!()); ($($arg:tt)*) => ({ println!($($arg)*); }) } #[cfg(not(debug_assertions))] macr 阅读全文

posted @ 2021-02-10 15:19 DotNet1010 阅读(867) 评论(0) 推荐(0) 编辑

摘要: https://dev.to/cad97/rust-must-know-crates-5ad8 https://dev.to/search?q=100DayOfRust https://fasterthanli.me/tags/rust 阅读全文

posted @ 2021-02-10 10:01 DotNet1010 阅读(50) 评论(0) 推荐(0) 编辑

2021年2月9日

摘要: import time import base64 import pyDes import binascii def DESEncrypt(desKey, target): key = desKey[0:8] IV =desKey[::-1][0:8] btKey =key.encode(encod 阅读全文

posted @ 2021-02-09 15:24 DotNet1010 阅读(143) 评论(0) 推荐(0) 编辑

2021年1月28日

摘要: https://lborb.github.io/book/title-page.html https://blog.logrocket.com/unsafe-rust-how-and-when-not-to-use-it/ 阅读全文

posted @ 2021-01-28 08:42 DotNet1010 阅读(62) 评论(0) 推荐(0) 编辑

2021年1月13日

摘要: using Microsoft.AspNetCore.Builder; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensio 阅读全文

posted @ 2021-01-13 09:36 DotNet1010 阅读(434) 评论(0) 推荐(0) 编辑

2020年12月30日

摘要: https://blog.gkarch.com/2015/09/high-resolution-timer.html https://www.cnblogs.com/samgk/articles/5725694.html http://yiiyee.cn/blog/2013/09/01/clock- 阅读全文

posted @ 2020-12-30 13:48 DotNet1010 阅读(222) 评论(0) 推荐(0) 编辑