MAX(Column) returns me a wrong value

前端 未结 3 1980
猫巷女王i
猫巷女王i 2021-01-28 19:40

I want to retrieve the maximum invoice number from my invoice table where it returns the following when I select all records where you can clearly see the maximum invoice no as

3条回答
  •  别那么骄傲
    2021-01-28 20:04

    It is a pseudo code, try and see it.

    SELECT MAX(CAST(invoice_number AS SIGNED)) from invoice.

提交回复
热议问题