02 2023 档案

摘要:1 class Solution { 2 public String convert(String s, int numRows) { 3 String resultS = ""; // 待返回的字符串 4 int len = s.length(); // 字符串长度 5 if (numRows < 阅读全文
posted @ 2023-02-22 13:16 陆陆无为而治者 阅读(117) 评论(0) 推荐(0) 编辑
摘要:class Solution { public String longestPalindrome(String s) { int max = 1; // 设置回文字符串长度为1 int len = s.length(); // 设置总字符串长度 String result = s.substring 阅读全文
posted @ 2023-02-21 19:46 陆陆无为而治者 阅读(20) 评论(0) 推荐(0) 编辑
摘要:class Solution { public int lengthOfLongestSubstring(String s) { int len = s.length(); // 输入的字符串长度 int max = 0; // 不重复的字符串数量 int start = 0; // 不重复字符串的 阅读全文
posted @ 2023-02-17 19:43 陆陆无为而治者 阅读(18) 评论(0) 推荐(0) 编辑
摘要:https://leetcode.cn/problems/add-two-numbers/ 1 /** 2 * Definition for singly-linked list. 3 * public class ListNode { 4 * int val; 5 * ListNode next; 阅读全文
posted @ 2023-02-14 23:34 陆陆无为而治者 阅读(17) 评论(0) 推荐(0) 编辑
摘要:版本 Excel 2019 步骤 点击插入函数 打开文档,点击公式菜单下的插入函数。 双击选择IF函数 在函数列表双击选择IF函数。 输入条件测试值 在第一个输入框输入条件测试值。 设置输出结果值 阅读全文
posted @ 2023-02-09 19:15 陆陆无为而治者 阅读(1258) 评论(0) 推荐(0) 编辑
摘要:SQL Server Date 函数 SQL Server的重要日期函数包括: 函数 描述 参数含义 GETDATE() 返回当前的日期和时间 DATEPART(datepart,date) 返回日期/时间的单独部分 datepart : 返回日期的部分(如:year,month,day) date 阅读全文
posted @ 2023-02-08 18:37 陆陆无为而治者 阅读(245) 评论(0) 推荐(0) 编辑
摘要:定义用法 DATEDIFF() 函数返回两个日期之间的日期差。 语法 DATEDIFF(datepart,startdate,enddate) startdate 和 enddate 参数是合法的日期表达式。datepart 参数可以是下列的值: datepart 缩写 年 yy,yyyy,year 阅读全文
posted @ 2023-02-07 19:43 陆陆无为而治者 阅读(866) 评论(0) 推荐(0) 编辑
摘要:608. 树节点 /* Write your T-SQL query statement below */ SELECT id , (CASE WHEN p_id IS NULL THEN 'Root' ELSE -- 根节点,p_id为null CASE WHEN id IN (SELECT p_ 阅读全文
posted @ 2023-02-06 19:50 陆陆无为而治者 阅读(22) 评论(0) 推荐(0) 编辑
摘要:1 SELECT sell_date ,COUNT(1) AS num_sold, 2 STUFF(( 3 SELECT ',' + son.product 4 FROM (SELECT DISTINCT * FROM Activities) son -- 不包含重复项 5 WHERE son.se 阅读全文
posted @ 2023-02-03 17:46 陆陆无为而治者 阅读(127) 评论(0) 推荐(0) 编辑
摘要:使用UPPER 和 LOWWER函数组合首字母大写。例如: 1 SELECT user_id,(UPPER(LEFT(name,1) ) + RIGHT(name , LEN(name) -1) )AS name 2 FROM Users 3 ORDER By user_id 阅读全文
posted @ 2023-02-03 17:13 陆陆无为而治者 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2023-02-02 18:24 陆陆无为而治者 阅读(20) 评论(0) 推荐(0) 编辑
摘要:NUMERIC数据类型是一种精确数字数据类型。 numeric是标准sql的数据类型,格式是numeric(m,n)。最多精确位数为38位,其中m表示总位数,n表示保留的小数点位数。 参数 含义 默认值 m 总位数 18 n 保留的小数点位数 0 例子如下: DECLARE @num numeric 阅读全文
posted @ 2023-02-01 17:50 陆陆无为而治者 阅读(3994) 评论(0) 推荐(0) 编辑

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