
Python是连接和 *** 作数据库的语言,可以用来对数据库进行增删改查;
数据库开发--关系型数据库应该是用的SQL吧!非关系型就不清楚了!
开发数据库这个软件的语言,应该基本上是C,C++为主吧,mongodb的分布式处理部分的有些组件是用go语言开发的
所用开发环境:C++ Builder 50
第一篇:BCB与数据库的关系
很多人开发数据库应用程序存在一个概念模糊的问题,也就是说,什么是前台,什么是后台。其实,BCB开发数据库应用程序,就是用BCB提供的功能,通过数据链路来 *** 作数据库!这里的数据链路就是指 *** 作系统或者是BCB提供的一个统一的对数据库 *** 作的界面!比如有:ODBC,ADO,BDE等等!我们的数据库应用程序就是通过用户界面来进行输入或输出的一些 *** 作来达到通过ADO或ODBC,BDE等来对后台的数据库进行控制(插入,删除,修改,查询等等)。
第二篇:BCB开发数据库的组件和工具
要想开发数据库应用程序,建议重点掌握以下的工具和组件:
1、数据访问组件和数据感知组件
这两类组件大约有20多个。数据访问组件确定访问数据库的类型、打开方式和数据库的状态;数据感知组件可以根据数据库中的数据类型,选用功能不同的组件访问数据库中的数据。
2、数据报表组件
数据报表组件主要是为输出报表使用,如果用户不需要输出报表,这类组件可以不掌握。BCB自己带的有QuickReport,但就个人观点这组报表组件不是很好用,这时就需要用到第三方报表组件,比如:FastReport。以后所讲报表设计,全部是采用FastReport组件!
3、BDE管理器
BDE管理器(Administrator)是Borland公司的数据库引擎管理工具。它可以设定BDE别名和路径,设置数据库语言驱动引擎(如中文驱动引擎),设置支持的数据库类型和版本等信息。
4、数据库桌面
数据库桌面是一个数据库维护应用程序,类似于一个小型的FoxBASE,可以创建、删除和压缩数据库,可以对数据库的结构和索引进行修改,可以从一个数据库复制数据到另一个数据库。
在以上的四类组件或工具中,BDE Administrator是数据库应用程序支持环境,如果没有它,数据库应用程序则不能运行(基于BDE的数据库应用程序)。数据库桌面的功能可以通过用户自己编程和使用组件来实现。
第三篇:如何安装数据库工具和实例
为了能够使用C++Builder的数据库功能,在安装C++Builder时应注意以下几个设置:
1、选用Custom模式安装
这个不用讲,大家应该知道,也就是说,当安装程序进行到选择安装模式时,选这一项。
2、选择数据库工具
当选择了Custom安装模式后,点击Next后:
选取DataBase Desktop 安装数据库桌面系统工具;
选取Borland DataBase Engine 安装Borland公司数据库驱动引擎(BDE);
选取SQL Links 安装SQL的各种数据库支持;
选取Shared Files 安装Borland公司产品的一些共享数据。
--部门信息表
create table Departments
(
d_id int not null primary key,
d_name varchar(20) not null,
)
use POS
--员工信息表
create table employee
(
e_id int not null primary key,
ename varchar(10) not null,
esex char(2) not null,
constraint CK_yg check ( esex in('男','女')),
eduties varchar(10) not null,
epassword int not null,
eleve char(4) not null,
eshengfen int not null,
d_id int not null,
constraint FK_ano foreign key(d_id) references Departments(d_id)
)
--供应商信息表
create table offer
(
o_id int not null primary key,
oname varchar(10) not null,
oaddress varchar(20) not null,
post int not null,
phonenumber int not null,
tax int not null,
obanknumber int not null,
obank varchar(20) not null,
ocontact varchar(10) not null,
onote varchar(20)
)
--会员信息表
create table Member
(
Mno int not null primary key,
Mname varchar(10) not null,
Msex char(2) not null,
constraint CK_ya check ( Msex in('男','女')),
Mid int not null,
Mamount money not null,
Mintegral int not null
)
--商品信息表
create table product
(
p_id int not null primary key,
pclass varchar(20) not null,
pquantity int not null,
pprice money not null,
pname varchar(10) not null
)
--入库信息表
create table import
(
i_id int identity(0 ,1) not null primary key ,
idate datetime ,
p_id int ,
constraint FK_an foreign key(p_id) references product(p_id),
Punit int ,
iprice money,
Sales_price money ,
iquantity int,
Total_amount money,
o_id int ,
constraint FK_cn foreign key(o_id) references offer(o_id),
Salesman_No int ,
constraint FK_on foreign key(Salesman_No) references employee(e_id)
)
--销售出货单主信息表
create table xiaoshouzhu
(
xdate datetime not null,
xtotal_amount money not null,
xsfxj char(2) not null,
xsfmember char(2) not null,
Mno int not null,
constraint FK_ak foreign key(Mno) references Member(Mno),
MRsyybh int not null,
constraint FK_ek foreign key(MRsyybh) references employee(e_id)
)
--销售出货单子信息(
create table xiaoshouzi
(
xzRno int not null,
quantity int not null,
price money not null,
zkbl float not null,
amount money not null
)
--1当在商品信息表中添加一条商品信息时,同时将该商品信息记录在入库信息表中(触发器)
create trigger triger_1
on product
after insert
as
begin
declare @a int, @b varchar(20),@c int,@d money, @e varchar(20)
select @a = p_id ,@b = pclass,@c = pquantity , @d = pprice ,@e = pname from inserted
insert into import(idate,p_id,Punit,iprice,Sales_price,iquantity,Total_amount,p_id,Salesman_No)
values (null ,@a , null , null,@d, @c ,null , null,null)
end
--2销售一件商品时,将该销售信息记录在销售出货单子信息表中,并从入库信息表中将对应产品的数量减一(触发器)
create trigger triger_2
on xiaoshouzi
after insert
as
begin
update import
set iquantity = (iquantity -1)
where p_id =(select p_id from inserted)
end
--3撤消某部门时,将该部门记录从部门表中删除,并将员工表中对应该部门的员工记录删除(触发器)
create trigger triger_3
on Departments
after delete
as
begin
delete employee
where d_id = (SELECT d_id from deleted)
end
--4当更新商品信息表中商品单价时,同时更改入库信息表中对应商品的销售价格(触发器)
create trigger triger_4
on product
after update
as
begin
update import
set Sales_price = (select pprice from inserted)
where p_id = (select p_id from deleted )
end
--5向销售出货单子信息表中添加一条信息,并输出表中商品总金额。(存储过程)
create procedure productpricing_1
@total_amount money output,
@a int,
@b int,
@c money,
@d float,
@e money
as
begin
insert into xiaoshouzi
values (@a , @b ,@c ,@d ,@e);
select @total_amount = (price quantity) from xiaoshouzi
end
--6输出副食类商品的入库平均价格。(存储过程)
create procedure productpricing_2
@avg_price money output
as
begin
select @avg_price = avg(pprice)
from product
where pname = '副食类'
end
--7输出收银员“刘明”在2010年3月6号销售的商品总金额(存储过程)
create procedure productpricing_3
@total_amount money output
as
begin
select @total_amount = DRtotal_amount
from xiashouzhu , employee
where xiaoshouzhuMRsyybh = employeee_id and employeeename = '刘明' and xiaoshouzhuxdate = '2010年3月6号'
end
以上就是关于数据库开发都是用什么语言进行开发的全部的内容,包括:数据库开发都是用什么语言进行开发的、C++怎么开发数据库、数据库开发等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)