06 2022 档案

摘要:示例代码1 class TestApplyClass { def apply(param: String): String = { println("apply method called, parameter is: " + param) return "Hello World!" } } val 阅读全文

posted @ 2022-06-26 17:23 foghorn 阅读(42) 评论(0) 推荐(0) |

摘要:sql语句中where、group by、having、order by 是否可以使用别名 1、在mysql中,group by、order by中可以使用别名;where中不能使用别名,(如果别名来自某个子查询,则where中也可以使用别名) 2、在oracle中: 1)where/group b 阅读全文

posted @ 2022-06-19 21:35 foghorn 阅读(56) 评论(0) 推荐(0) |

摘要:一般形式 列名 [not] like 'str' 匹配串可以是以下四种通配符: 单下划线 _:匹配任意一个字符; %:匹配0个或多个字符; :匹配中的任意一个字符(若要比较的字符是连续的,则可以用连字符“-”表 达 ); [^ ]:不匹配中的任意一个字符。 例1 查询学生表中姓‘张’的学生的详细信息 阅读全文

posted @ 2022-06-19 15:04 foghorn 阅读(1067) 评论(0) 推荐(0) |

摘要:MySQL常用函数 cast() 语法 cast(expression as TYPE) cast()函数将任何类型的值转换为具有指定类型的值。目标类型可以是以下几种之一:binary、char、date、datetime、time、decimal、signed、unsigned。 示例 将字符串转 阅读全文

posted @ 2022-06-18 12:53 foghorn 阅读(78) 评论(0) 推荐(0) |

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3