关于Firebird必看.

<!-- /* Font Definitions */ @font-face {font-family:宋体; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋体"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:新宋体; panose-1:2 1 6 9 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@新宋体"; panose-1:2 1 6 9 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:modern; mso-font-pitch:fixed; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋体; mso-font-kerning:1.0pt;} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:宋体; mso-bidi-font-family:宋体;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} /* List Definitions */ @list l0 {mso-list-id:1922133771; mso-list-type:hybrid; mso-list-template-ids:1721500152 -561091326 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;} @list l0:level1 {mso-level-tab-stop:18.0pt; mso-level-number-position:left; margin-left:18.0pt; text-indent:-18.0pt;} ol {margin-bottom:0cm;} ul {margin-bottom:0cm;} -->

1.       嵌入式版本中有 7 dll ,以及 intl 文件夹,需要放在 E:/XuhyCL/XuhyCL/bin/Debug 下,在解决方案中只引用 System.Data.SQLite.dll

2.       设置连接属性时,需要设置 FbConnectionStringBuilder cs cs.ClientLibrary 的属性为fbembed.dll 的绝对路径。

3.       一般默认用户名为SYSDBA ,密码为masterkey 。编码可以为GB_2312

4.       ibexpert 作数据管理工具时,需要将 7 dll intl 文件夹,以及 firebird.msg 放入 ibexpert.exe 所在目录。

5.       打开 ibexpert 后,需要设置 charset, 注意两个地方都要选择 GB_2312 或其他。

6.       可以用fbdatawizard.exe 进行数据导入导出,可以将sql 服务中的数据库导入未fdb 文件,但必须导入到服务器版本的Firebird

7.       如果在使用 ibexpert 时候提示用户无权限,请将 fdb 文件路径改为英文。

8.      SQL   Server 的表导入到FireBird 表:经我测试,把数据生成SQL 脚本,在IBXpert 里执行的话,大概3W 条记录1m 就搞定了

9.      运行程序的时候,需要设置intl 文件夹和fbembed.dllicuuc30.dllicudt30.dllicuin30.dllfirebird.msg 放在exe 所在目录下。

10.   Firebird 不支持 Boolean 类型 ,用smallint 代替。

11.   语句:

CREATE DATABASE 'firstdb.gdb' USER 'sysdba' PASSWORD 'masterkey'

该命令将在当前目录下创建一个名为firstdb.gdb 的文件。该数据库归SYSDBA 所有,下面来创建一个基本的销售表并且输入数据,代码如下:

CODE:

SQL>; CREATE TABLE sales_catalog (
CON>; item_id varchar(10) not null primary key,
CON>; item_name varchar(40) not null,
CON>; item_desc varchar(50)
CON>; );
SQL>; INSERT INTO sales_catalog VALUES('001','Aluminium Wok',
'Chinese wok used for stir fry dishes');
SQL >; INSERT INTO sales_catalog VALUES('002',
'Chopsticks extra-long', '60-cm chopsticks');
SQL>; INSERT INTO sales_catalog VALUES('003',
'Claypot', 'Pot for stews');
SQL>; INSERT INTO sales_catalog VALUES('004',
'Charcoal Stove', 'For claypot dishes');
SQL>; SELECT * FROM sales_catalog;
ITEM_ID ITEM_NAME ITEM_DESC

 

DELETE FROM sales_catalog;

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值