简体   繁体   中英

1a 1b 1c level descriptors in mysql

How construct a dynamic MySQL Query where the value of MAX(InvoiceNo) should be

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

The query is

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

Here is my fiddle

Try this

Select InvoiceNo  from invoice_balance order by InvoiceNo  asc limit 3

This query will return you the 1a,1b,1c

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM