1a 1b 1c mysql中的级别描述符

时间:2014-11-11 05:15:50

标签: php mysql

如何构造动态MySQL查询,其中MAX(InvoiceNo)的值应为

1a,1b,1c...1z,2a,2b...2z,3a...

查询

$max = "SELECT MAX( InvoiceNo ) as InvoiceNomulti FROM invoice_balance";

Here is my fiddle

1 个答案:

答案 0 :(得分:0)

试试这个

Select InvoiceNo  from invoice_balance order by InvoiceNo  asc limit 3

此查询将返回1a,1b,1c