查询access数据库表的数据数据库中有kp表kp表中有三行数据idnamesex1林小明男2张小玲女3陈小东男窗体有两
查询access数据库表的数据
数据库中有kp表
kp表中有三行数据
id name sex
1 林小明 男
2 张小玲 女
3 陈小东 男
窗体有两个按钮 Command1 , Command2
点击command1时只显示性别为男的数据
点击Command2时只显示性别为女的数据
语句应该怎么写呢.?
[解决办法]
男:
select * from kp where sex='男'
女:
select * from kp where sex='女'
[解决办法]
select * from kp where sex='男'
select * from kp where sex='女'
