会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
一隅桥畔
将来的你会感谢,现在奋斗的你
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
13
下一页
2022年7月29日
sql server批量删除重复数据
摘要: -- 批量删除重复数据 delete t from ( select row_number() over(partition by user_code order by id) as rowNumber,* from t_user )t where t.rowNumber > 1
阅读全文
posted @ 2022-07-29 15:36 一隅桥畔
阅读(118)
评论(0)
推荐(0)
2022年6月18日
js单选框赋值
摘要: $("input[name='sex'][value='1']").prop("checked",true); $("input[name='sex'][value='1']").attr("checked",true);
阅读全文
posted @ 2022-06-18 19:56 一隅桥畔
阅读(545)
评论(0)
推荐(0)
2022年5月11日
JS去除字符串默认逗号
摘要: //去除末尾逗号 function replaceComma(str){ var reg = /,$/gi; str = str.replace(reg,""); }
阅读全文
posted @ 2022-05-11 23:19 一隅桥畔
阅读(70)
评论(0)
推荐(0)
SQL去除字符串末尾逗号
摘要: select left(str,len(str)-1) -- 非空校验 select case when len(str)>1 then left(str,len(str)-1) else str end
阅读全文
posted @ 2022-05-11 23:18 一隅桥畔
阅读(183)
评论(0)
推荐(0)
2022年4月25日
SQL去除字符串空格
摘要: -- 去除左侧空格ltrim() select ltrim(' abc');-- abc -- 去除右侧空格rtrim() select rtrim('abc ');-- abc -- 去除两侧空格 select ltrim(rtrim(' abc '));-- abc
阅读全文
posted @ 2022-04-25 14:58 一隅桥畔
阅读(1015)
评论(0)
推荐(0)
2022年4月24日
当IDENTITY_INSERT设置为OFF时,不能为表'sys_config'中的标识列插入显式值
摘要: -- 打开 set identity_insert [表名] on -- 关闭 set identity_insert [表名] off -- 注:IDENTITY_INSERT默认是OFF
阅读全文
posted @ 2022-04-24 20:18 一隅桥畔
阅读(903)
评论(0)
推荐(1)
2022年4月19日
修改Tomcat控制台标题
摘要: 1、在bin文件夹中修改catalina.bat文件在if "%TITLE%" == "" set TITLE=Tomcat处将Tomcat修改为显示的标题,如:set TITLE=标题 2、在bin文件夹中新建setenv.bat文件set TITLE=标题 注:控制台默认的标题是Tomcat
阅读全文
posted @ 2022-04-19 14:10 一隅桥畔
阅读(396)
评论(0)
推荐(0)
2022年4月7日
JAVA日期格式化
摘要: //时间设置为东八区 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8") //注:@JsonFormat注解在属性的上方
阅读全文
posted @ 2022-04-07 10:36 一隅桥畔
阅读(40)
评论(0)
推荐(0)
2022年4月2日
平滑加权轮询算法
摘要: 所有负载均衡的场景几乎都会用到这个算法:假设有2个服务器A、B,其中A的分配权重为80,B的分配权重为20,当有5个请求过来时,A希望分到4次,B希望分到1次。 一个很自然的想法:A-A-A-A-B ,按权重顺序依次分配,同时计数,每分配1次,计数减1,减到0后,再分配『次权重』的服务器。 看上去好
阅读全文
posted @ 2022-04-02 16:46 一隅桥畔
阅读(179)
评论(0)
推荐(0)
2022年4月1日
SQL批量删除相同前缀的表
摘要: -- 执行得到批量删除语句 select CONCAT('drop table ', table_name, ';') from information_schema.tables where table_name like 'pre_%'; -- 执行结果: drop table pre_acco
阅读全文
posted @ 2022-04-01 16:26 一隅桥畔
阅读(262)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
13
下一页
公告