Hi! Can anyone know the result of this query: SELECT COALESCE(MAX(ID),0) + 1 FROM Table123

Recommended Answers

All 3 Replies

It's the highest id or zero, then plus one.

tnx, I up-voted your reply, should I also checked your answer as corect somewhere?

should I also checked your answer as corect somewhere?

No. We do not have that feature.

Below the reply box is a button "Mark Question Solved" which you can use when your question has been answered.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.