如何得到数据表中的一个字段的数量..(10分)

W

why_119

Unregistered / Unconfirmed
GUEST, unregistred user!
如何得到数据表中的一个字段的数量..
ADOQ_1.FieldCount;这样写对不对.
 
Select * ,count(*) as A form tableName where field1=...;
s := table1.fieldbyName('A').AsInteger.
s就是一个字段的数量了。
 
adotable1.fields.count

adoquery1.Fields.Count
 
字段的数量,table1.fieldcount(或者table1.fields.count)
记录的数量,table1.recordcount(或者select count(*) from table1)
 
可能会不通用的,我用的是oracle。
select count(*) from user_tab_columns where table_name=表名;
 
我试试......
 
兄弟,我看不明白你是什么意思?
是想问一个字段中记录的数量还是这个表中字段的数量??
 
???????????
问题不明了
 
twos是正确的!1
 
顶部