Delphi怎么读取access数据库的某一字段的数据加载到combobox,并且不重复
Delphi如何读取access数据库的某一字段的数据加载到combobox,并且不重复
Delphi如何读取在连接数据库后读取access数据库的某一字段的数据加载到combobox,并且不重复
------解决思路----------------------
运行结果:

'select distinct user_unit from 表1 order by user_unit' 说明:
distinct 为了不重复
order by为了排序。
希望以上内容对楼主有所帮助。
本人特别喜欢delphi。
------解决思路----------------------
SQL.Text:='select distinct user_unit from 表1 where user_unit is not null order by user_unit';
修改sql语句,加上条件
where user_unit is not null
我很少很少上QQ!
Delphi如何读取在连接数据库后读取access数据库的某一字段的数据加载到combobox,并且不重复
------解决思路----------------------
运行结果:
'select distinct user_unit from 表1 order by user_unit' 说明:
distinct 为了不重复
order by为了排序。
希望以上内容对楼主有所帮助。
本人特别喜欢delphi。
------解决思路----------------------
SQL.Text:='select distinct user_unit from 表1 where user_unit is not null order by user_unit';
修改sql语句,加上条件
where user_unit is not null
我很少很少上QQ!