bill 菜单表
int id ;//本ID
CString name ;//名称
int unit;//单位
bill *next;
unit 单位表
int id;//
CString name ;//单位名称 下面的哪个更快
1 select a.*,b.name as unit_name form bill a ,unit b where a.unit=b.id2 select * from bill;
select * from unit; while (bill.eof)
{
whlie (unit.eof)
{
if bill.unit=b.id
sprintf("%s %s",bill.name,unit.name)
unit.next
} bill.next
}
两种方法哪个对数据的显示是最快的
int id ;//本ID
CString name ;//名称
int unit;//单位
bill *next;
unit 单位表
int id;//
CString name ;//单位名称 下面的哪个更快
1 select a.*,b.name as unit_name form bill a ,unit b where a.unit=b.id2 select * from bill;
select * from unit; while (bill.eof)
{
whlie (unit.eof)
{
if bill.unit=b.id
sprintf("%s %s",bill.name,unit.name)
unit.next
} bill.next
}
两种方法哪个对数据的显示是最快的
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货