我有一个客户表,在 id(primary key) 中它与'customer'+sequential_number 组合在一起,
假设我有这些数据:
customer9998 | name1 | birtdate1
customer9999 | name2 | birtdate2
customer10000 | name3 | birtdate3
customer10001 | name4 | birtdate4
当我使用这个查询时:
select max(cust_id) from customer_table;
我得到了 customer9999,这是不正确的 - 任何建议如何做到这一点,特别是在 sql 查询标准中?