如何构造动态MySQL查询,其中MAX(InvoiceNo)
的值应为
1a,1b,1c...1z,2a,2b...2z,3a...
查询
$max = "SELECT MAX( InvoiceNo ) as InvoiceNomulti FROM invoice_balance";
答案 0 :(得分:0)
试试这个
Select InvoiceNo from invoice_balance order by InvoiceNo asc limit 3
此查询将返回1a,1b,1c