随笔分类 -  Firebird

摘要:1. 字段可以是中文 2. 连接字符串:string cnstr = "Server=localhost; User Id=LJQ; password=s082"; 3. 和Oracle差不多,创建一个用户,然后这个用户创建模式,相当于mssql的一个数据库。 4. 在创建数据库(实例)时,指定查询 阅读全文
posted @ 2022-04-19 23:21 81 阅读(719) 评论(0) 推荐(0) 编辑
摘要:原文: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 阅读(63) 评论(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 阅读(106) 评论(0) 推荐(0) 编辑
摘要:Firebird shadow - jonney_wang - 博客园 (cnblogs.com) 火鸟数据库的shadow,即实时镜像。 主库发生变化,shadow也跟随变化,防止任何意外造成主库损坏无法使用,当然shadow可以有多个。 1、创建shadow的准备:修改Firebird.conf 阅读全文
posted @ 2022-04-04 11:18 81 阅读(52) 评论(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 阅读(64) 评论(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 阅读(163) 评论(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 阅读(70) 评论(0) 推荐(0) 编辑
摘要:参考: https://blog.csdn.net/liluo_2951121599/article/details/81661630 UTF8是可变编码,数字英文都占1个字节,汉字占3个或4个字节。 mysql和MariaDB默认是utf8mb3,一般情况下没有问题,但若保存一些生僻字或颜文字(e 阅读全文
posted @ 2021-08-10 15:34 81 阅读(793) 评论(0) 推荐(0) 编辑
摘要:在管理工具中直接设置为“auto”即可设置为自动增长字段。同时会创建一个序列值,如RDB$10,后面10会递加,若删除表,则这个序列也自动删除。但没有同时创建触发器。 auto功能相当于默认值,但在对象中未找到。 在insert表时,若此字段给值则用给定值,若没有才会调用序列的自增值。这带来一个问题 阅读全文
posted @ 2021-07-29 23:50 81 阅读(340) 评论(0) 推荐(0) 编辑
摘要:https://github.com/lalexs75/FBManager 阅读全文
posted @ 2020-04-09 08:10 81 阅读(546) 评论(0) 推荐(0) 编辑
摘要:https://www.evanjiang.net/database/firebird/2018-11-09-689.html 1.DatabaseAcces 指的是访问Firebird数据库的路径,可以用相对路径,也可以用绝对路径.如果是访问整个服务器的磁盘空间写:DatabaseAcces=Fu 阅读全文
posted @ 2020-04-08 17:02 81 阅读(510) 评论(0) 推荐(0) 编辑
摘要:https://www.oschina.net/question/54100_8615 Firebird 数据库使用经验总结 鉴客 发布于 2010/05/18 11:48 阅读 8K+ 收藏 8 评论 3 鉴客 发布于 2010/05/18 11:48 阅读 8K+ 收藏 8 评论 3 Fireb 阅读全文
posted @ 2020-01-21 09:30 81 阅读(548) 评论(0) 推荐(0) 编辑
摘要:默认建立数据库时为一个数据文件,但文件不能无限大,故可以为数据库增加新文件: isql 打开数据库,并conn到指定数据库,然后 Alter databaseAdd file ‘d:\data\d2.FDB' length 100000 这个可能是页大小Add file 'd:\data\d3.FD 阅读全文
posted @ 2017-05-29 21:05 81 阅读(735) 评论(0) 推荐(0) 编辑
摘要:解决C#无法访问的情况:1. 使用FirebirdSql.Data.FirebirdClient 5版本以上。2.修改Firebird.conf配置文件WireCrypt为Enabled#WireCrypt = Enabled (for client) / Required (for server) 阅读全文
posted @ 2017-05-29 20:32 81 阅读(986) 评论(0) 推荐(0) 编辑
摘要:select first 10 skip 8 * from t_data //跳过前8行不要,取10行,即取第9行到18行共10行 select first 10 * from t_data //取前10行select * from t_data rows 11 to 20 //取第11行到20行, 阅读全文
posted @ 2014-04-02 22:40 81 阅读(1543) 评论(0) 推荐(0) 编辑

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