求助吖····
delphi吧
全部回复
仅看楼主
level 9
zc9494zhuai 楼主
新手吖,麻痹哪里错啦吖···
2015年12月24日 02点12分 1
level 10
麻痹不懂英文吖··
2015年12月24日 02点12分 2
[泪]提示未找到id 明明数据库里有id字段啊
2015年12月24日 02点12分
@zc9494zhuai 楼下的回复,就是我想对你说的。
2015年12月24日 06点12分
level 11
能用点心吗[阴险]
2015年12月24日 03点12分 3
level 1
Close;
SQL.Text := 'Select count(id) from goods;';
Open;
if RecordCount > 0 then
Str := Fields.Fields[0].AsString;
2015年12月24日 04点12分 4
level 1
这个难道还区分大小写?
2015年12月25日 03点12分 5
level 11
你查的是count(id),又不是id
2015年12月25日 04点12分 6
level 12
select count(id) as id即可
2015年12月25日 14点12分 7
1