Z zgjob Unregistered / Unconfirmed GUEST, unregistred user! 2008-02-14 #1 表X内有一字段BM内容格式如下: <br>A001 <br>A002 <br>B001 <br>B002 <br>.... <br>如何通过SQL或Delphi得到A003或B003得最大编号???
F fhuibo Unregistered / Unconfirmed GUEST, unregistred user! 2008-02-14 #2 先MAX出来,然后取后三位 转换为数值 +1 再补0<br>分别用到 copy(), strtoint(),
C Corn3 Unregistered / Unconfirmed GUEST, unregistred user! 2008-02-14 #3 select max(BM) from x group by left(BM, 1)