msflexgrid和sql数据库连接问题
新建一个工程,窗体上就四个控件(dbgrid,ado,msfg,rdo)
ado和rdo使用相同数据库连接,运行相同的查询语句
用了数据库里的两个表
create table book (
Bname varchar(50)
primary key clustered,
ISBN varchar(15) not null,
Author varchar(10) not null,
Class varchar(20) not null,
Bookman text not null,
Pubyear datetime not null,
Stocks smallint not null,
Price money not null
)
create table loan (
Pno int not null references people(Pid),
Bid bigint not null references bdetail(Bid),
Loantime datetime not null default getdate(),
Returntime datetime not null default dateadd(day,45,getdate())
)
在dbgird里能正确显示两个表数据,在msflexgrid里却只能显示loan表里的数据
但是在msflexgrid里book表只能显示列名,觉得很是奇怪
补充一下,为了测试,我在每个表里就插入了一行数据
请兄弟们帮忙看看什么原因。怎么解决。谢谢