I try to select max value from table
SELECT MAX(cid) FROM itemconfiguration;
However when table itemconfiguration
is empty the MAX(cid)
statements is evaluated to NULL
while i need a number. How to handle this and treat NULL
as 0 ?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…