摘要:
原文:https://www.cnblogs.com/jonney-wang/p/9654944.html Firebird 默认是大小写敏感,在检索的时候。 要想不敏感检索,两种方法: 1、where upper(name) = upper(:flt_name) 2、检索时指定字符集collati 阅读全文
posted @ 2022-04-04 11:39
81
阅读(78)
评论(0)
推荐(0)
摘要:
Firebird 条件函数 - jonney_wang - 博客园 (cnblogs.com) 1、iif IIF (<condition>, ResultT, ResultF) 示例: select iif( sex = 'M', 'Sir', 'Madam' ) from Customers S 阅读全文
posted @ 2022-04-04 11:31
81
阅读(124)
评论(0)
推荐(0)
摘要:
Firebird shadow - jonney_wang - 博客园 (cnblogs.com) 火鸟数据库的shadow,即实时镜像。 主库发生变化,shadow也跟随变化,防止任何意外造成主库损坏无法使用,当然shadow可以有多个。 1、创建shadow的准备:修改Firebird.conf 阅读全文
posted @ 2022-04-04 11:18
81
阅读(86)
评论(0)
推荐(0)
摘要:
原文:https://www.cnblogs.com/jonney-wang/p/9353332.html 语法: LIST ([ALL | DISTINCT] expression [, separator]) 示例: select list(u.code, ';') from m_user u 阅读全文
posted @ 2022-04-04 11:16
81
阅读(78)
评论(0)
推荐(0)
摘要:
原文:https://www.cnblogs.com/jonney-wang/p/9353247.html 查询当前时间: 1、使用内置系统变量 1 select current_timestamp from rdb$database 2、使用now字符串转换 1 select cast('NOW' 阅读全文
posted @ 2022-04-04 11:12
81
阅读(200)
评论(0)
推荐(0)
摘要:
https://www.cnblogs.com/jonney-wang/p/9350974.html execute block asdeclare variable i int = 0;begin while(:i < 100) do begin :i = :i + 1; insert into 阅读全文
posted @ 2022-04-04 11:02
81
阅读(82)
评论(0)
推荐(0)
浙公网安备 33010602011771号